Core Docs | Additional Modules Docs

String.prototype.br2nl


@Description: Converts HTML line breaks "<br />" to new lines "\n"
@File: String/prototype/br2nl.js
@Author: Paul Visco
@Version: 1.0 11/19/07
@Return: String The original string but replaces breaks with actual new lines
@Example:
var myString = 'hello<br />there';
var newString = myString.br2nl();
//newString = "hello\nthere";