logo
Home XtGem- Templates- XtScript- bottom
Replaces HTML line breaks with newlines in a string
[...] = optional ... = your value
[var $... = ]call br2nl $val=... [;$is_xhtml=...]
If $is_xhtml=0
is also converted
Show in textarea
<!--parser:xtscript-->
var $input = foo<br />bar<br />foo<br>bar
var $output = call br2nl $val=$input ;$is_xhtml=0
print <pre>$output</pre>
<!--/parser:xtscript-->
Show in textarea
Reload
foo
bar
foo
bar
Powered by XtGem
About us Contact Forum topÂ