src/wcmf/lib/presentation/link/LinkProcessor.php
protected static function replaceUrl($value, $url, $urlConv, $type) {
    if ($type == 'embedded') {
      $value = str_replace('"'.$url.'"', '"'.$urlConv.'"', $value);
    }
    else {
      $value = str_replace($url, $urlConv, $value);
    }
    return $value;
  }
protected static function replaceUrl($value, $url, $urlConv, $type) {
    if ($type == 'embedded') {
      $value = str_replace('"'.$url.'"', '"'.$urlConv.'"', $value);
    }
    else {
      $value = str_replace($url, $urlConv, $value);
    }
    return $value;
  }
protected static function replaceUrl ( $ value , $ url , $ urlConv , $ type ) { if ( $ type == 'embedded' ) { $ value = str_replace ( '"' . $ url . '"' , '"' . $ urlConv . '"' , $ value ) ; } else { $ value = str_replace ( $ url , $ urlConv , $ value ) ; } return $ value ; }
Replace the url in the given value
@param $value
@param $url
@param $urlConv
@param $type embedded or direct
@return String
Replace the url in the given value