unescape_invalid_shortcodes

函数


unescape_invalid_shortcodes ( $content )
参数
  • (string)
    $content
    Content to search for placeholders.
    Required:
返回值
  • (string) Content with placeholders removed.
定义位置
  • wp-includes/shortcodes.php
    , line 492
引入
4.2.3
弃用

Removes placeholders added by do_shortcodes_in_html_tags().

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

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

	return $content;
}