logo
Home XtGem- Templates- XtScript- bottom
Remove HTML and PHP tags from a string
[...] = optional ... = your value
[var $... = ]call strip_tags $val=…[;$allowable_tags=...]
Show in textarea
<!--parser:xtscript-->
var $input = <span style="color:red"><u>FOOBAR</u></span>
var $output = call strip_tags $val=$input;$allowable_tags=<u>
print input = $input<br />
call htmlspecialchars $val=$input
print <hr />
print output = $output<br />
call htmlspecialchars $val=$output
<!--/parser:xtscript-->
Show in textarea
Reload
input = FOOBAR
<span style="color:red"><u>FOOBAR</u></span>
output = FOOBAR
<u>FOOBAR</u>
Powered by XtGem
About us Contact Forum top