Javascipt: how to use nl2br function
March 3, 2011 | In: javascript, Regular Expression, web development
In php we have a function to replace nl2br means new line to break format. but when we need this functionality in our javascript code then what we do? We can do by simply manner: function nl2br(value) { return value.replace(/\n, ""); ...