// If there is no text at this point revert to the previous text.
returnstrlen((string)$text)>0?$text:$saved_text;
@trigger_error(__FUNCTION__.'() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterUrl::process() and no replacement is provided. See https://www.drupal.org/node/3566774',E_USER_DEPRECATED);
* Callback for preg_replace_callback() within _filter_url().
*
* @deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has
* been included in \Drupal\filter\Plugin\Filter\FilterUrl::parseFullLinks()
* and no replacement is provided.
*
* @see https://www.drupal.org/node/3566774
*/
function_filter_url_parse_full_links($match){
@trigger_error(__FUNCTION__.'() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterUrl::parseFullLinks() and no replacement is provided. See https://www.drupal.org/node/3566774',E_USER_DEPRECATED);
// The $i:th parenthesis in the regexp contains the URL.
$i=1;
@@ -523,8 +407,15 @@ function _filter_url_parse_full_links($match) {
* Makes links out of email addresses.
*
* Callback for preg_replace_callback() within _filter_url().
*
* @deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has
* been included in \Drupal\filter\Plugin\Filter\FilterUrl::parseEmailLinks()
* and no replacement is provided.
*
* @see https://www.drupal.org/node/3566774
*/
function_filter_url_parse_email_links($match){
@trigger_error(__FUNCTION__.'() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterUrl::parseEmailLinks() and no replacement is provided. See https://www.drupal.org/node/3566774',E_USER_DEPRECATED);
// The $i:th parenthesis in the regexp contains the URL.
$i=0;
@@ -538,8 +429,16 @@ function _filter_url_parse_email_links($match) {
* Makes links out of domain names starting with "www.".
*
* Callback for preg_replace_callback() within _filter_url().
*
* @deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has
* been included in
* \Drupal\filter\Plugin\Filter\FilterUrl::parsePartialLinks() and no
* replacement is provided.
*
* @see https://www.drupal.org/node/3566774
*/
function_filter_url_parse_partial_links($match){
@trigger_error(__FUNCTION__.'() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterUrl::parsePartialLinks() and no replacement is provided. See https://www.drupal.org/node/3566774',E_USER_DEPRECATED);
// The $i:th parenthesis in the regexp contains the URL.
$i=1;
@@ -561,8 +460,16 @@ function _filter_url_parse_partial_links($match) {
* (optional) A Boolean indicating whether to escape (TRUE) or unescape
* comments (FALSE). Defaults to NULL, indicating neither. If TRUE, statically
* cached $comments are reset.
*
* @deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has
* been split between \Drupal\filter\Plugin\Filter\FilterUrl::escapeComments()
* and \Drupal\filter\Plugin\Filter\FilterUrl::unescapeComments(), and no
@trigger_error(__FUNCTION__.'() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been split between \Drupal\filter\Plugin\Filter\FilterUrl::escapeComments() and \Drupal\filter\Plugin\Filter\FilterUrl::unescapeComments(), and no replacement is provided. See https://www.drupal.org/node/3566774',E_USER_DEPRECATED);
static$mode,$comments=[];
if(isset($escape)){
@@ -591,8 +498,15 @@ function _filter_url_escape_comments($match, $escape = NULL) {
/**
* Shortens a long URL to a given length ending with an ellipsis.
*
* @deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has
* been included in \Drupal\filter\Plugin\Filter\FilterUrl::trimUrl() and no
* replacement is provided.
*
* @see https://www.drupal.org/node/3566774
*/
function_filter_url_trim($text,$length=NULL){
@trigger_error(__FUNCTION__.'() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterUrl::trimUrl() and no replacement is provided. See https://www.drupal.org/node/3566774',E_USER_DEPRECATED);
static$_length;
if($length!==NULL){
$_length=$length;
@@ -609,147 +523,56 @@ function _filter_url_trim($text, $length = NULL) {
* Converts line breaks into <p> and <br> in an intelligent fashion.
*
* Based on: http://photomatt.net/scripts/autop
*
* @deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has
* been included in \Drupal\filter\Plugin\Filter\FilterAutoP::process() and no
@trigger_error(__FUNCTION__.'() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterAutoP::process() and no replacement is provided. See https://www.drupal.org/node/3566774',E_USER_DEPRECATED);
* Escapes all HTML tags, so they will be visible instead of being effective.
*
* @deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has
* been included in \Drupal\filter\Plugin\Filter\FilterHtmlEscape::process()
* and no replacement is provided.
*
* @see https://www.drupal.org/node/3566774
*/
function_filter_html_escape($text){
returntrim(Html::escape($text));
@trigger_error(__FUNCTION__.'() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. The logic has been included in \Drupal\filter\Plugin\Filter\FilterHtmlEscape::process() and no replacement is provided. See https://www.drupal.org/node/3566774',E_USER_DEPRECATED);
@trigger_error(__FUNCTION__.'() is deprecated in drupal:11.4.0 and is removed from drupal:13.0.0. The logic is included in \Drupal\filter\Plugin\Filter\FilterHtmlImageSecure::process() and no replacement is provided. See https://www.drupal.org/node/3566774',E_USER_DEPRECATED);