Removes placeholders added by do_shortcodes_in_html_tags() .
Parameters
$content
stringrequired- Content to search for placeholders.
Source
function unescape_invalid_shortcodes( $content ) {
// Clean up entire string, avoids re-parsing HTML.
$trans = array(
'[' => '[',
']' => ']',
);
$content = strtr( $content, $trans );
return $content;
}
Changelog
Version | Description |
---|---|
4.2.3 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.