Method String.br2nl
Convert <br> to newline.
-
Syntax
String String.br2nl()
Works for any variant of <br>, <br/>, <br /> etc. and also works for multiline text. - Return value A new string with <br> converted to newline character (\n)
-
Examples
- To convert the string '<br>Hello World<br/>'
// Define string var s = '<br>Hello World<br/>'; // Ouput is 'Hello World' s.br2nl();
- Related String.nbsp2s
-
Download
Source
Unless otherwise noted all code in the JSLab Standard Library is licensed as GPLv3. See http://www.gnu.org/licenses/gpl.html for the entire license.
