Forum Moderators: coopster
strip_tags [php.net]
I should have been a little more specific there Champak. There is an optional second argument to the strip_tags() function called
allowable tags.
string strip_tags [php.net] ( string str [, string allowable_tags] )
If you want to allow <br /> tags, you would specify that in this optional argument.
function etz_striptags ($atts, $thing[<br>]) {
return strip_tags(parse($thing));
}
and I get the following error on the page:
Parse error: syntax error, unexpected '[', expecting ')' in /home/XXXX/public_html/tester/lib/txplib_misc.php(459) : eval()'d code on line 1
The above errors were caused by the plugin:etz_striptags
Did I do something wrong, or will this just not work for me? Thanks.
function etz_striptags ($atts, $thing) {
return strip_tags(parse($thing), '<br>');
}