unescape_invalid_shortcodes() WordPress Function
The unescape_invalid_shortcodes() function is used to unescape invalid shortcodes in a string. This is useful for when you want to output a string containing shortcodes that may be invalid, but you don't want them to be parsed by the shortcode parser.
unescape_invalid_shortcodes( string $content ) #
Remove placeholders added by do_shortcodes_in_html_tags().
Parameters
- $content
- (string)(Required)Content to search for placeholders. 
Return
(string) Content with placeholders removed.
Source
File: wp-includes/shortcodes.php
function unescape_invalid_shortcodes( $content ) {
	// Clean up entire string, avoids re-parsing HTML.
	$trans = array(
		'[' => '[',
		']' => ']',
	);
	$content = strtr( $content, $trans );
	return $content;
}
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
| Version | Description | 
|---|---|
| 4.2.3 | Introduced. |