replace nl2br in javascript | naveenOS https://www.naveenos.com How may I help you - Magento Certified Developer Thu, 03 Mar 2011 07:44:29 +0000 en-US hourly 1 https://wordpress.org/?v=6.5.2 Javascipt: how to use nl2br function https://www.naveenos.com/2011/03/javascipt-use-nl2br-function https://www.naveenos.com/2011/03/javascipt-use-nl2br-function#respond Thu, 03 Mar 2011 07:43:26 +0000 http://naveenos.com/?p=335 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, ""); } Above function will return the converted ‘\n’ to ‘‘. But above function has […]

The post Javascipt: how to use nl2br function first appeared on naveenOS.]]>
https://www.naveenos.com/2011/03/javascipt-use-nl2br-function/feed 0