unescape_invalid_shortcodes() – Remove placeholders added by do_shortcodes_in_html_tags().

You appear to be a bot. Output may be restricted

Description

Remove placeholders added by do_shortcodes_in_html_tags().

Usage

$string = unescape_invalid_shortcodes( $content );

Parameters

$content
( string ) required – Content to search for placeholders.

Returns

string Content with placeholders removed.

Source

File name: wordpress/wp-includes/shortcodes.php
Lines:

1 to 11 of 11
function unescape_invalid_shortcodes( $content ) {
  // Clean up entire string, avoids re-parsing HTML.
  $trans = array(
    '[' => '[',
    ']' => ']',
  );

  $content = strtr( $content, $trans );

  return $content;
}
 

 View on GitHub View on Trac