You appear to be a bot. Output may be restricted
Description
Remove unwanted tags introduced by other filtersThe $content may contain all sorts of nastys that WordPress filters have added to the plain text so we need to strip it out.
Usage
$string = bw_remove_unwanted_tags( $content );
Parameters
- $content
- ( string ) required –
Returns
string content with the unwanted HTML removedSource
File name: oik-css/shortcodes/oik-css.phpLines:
1 to 7 of 7
function bw_remove_unwanted_tags( $content ) { $dec = $content; $dec = str_replace( "<br />", "", $dec ); $dec = str_replace( "<p>", "", $dec ); $dec = str_replace( "</p>", "", $dec ); return $dec; }View on GitHub View on Trac