As the name implies, a newline (carriage returns) to remove the JavaScript program that simple.
JavaScript code
function removeLineBreak() { var text; text = document.removeLineBreakForm.before.value; text = text.replace((new RegExp("\r\n","g")),""); text = text.replace((new RegExp("\n","g")),""); document.removeLineBreakForm.after.value = text; }
Tags: JavaScript
HOME > Articles 2011 > remove the line breaks JavaScript