br2nl
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
Example code
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 Example output