Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to read breakline in html

function xx (string){
  return string.replace(/(
|
|
)/gm, "</br>");
}

console.log('Here's some text.
 It has some line breaks that will be removed 
 using Javascript.
');
 
PREVIOUS NEXT
Tagged: #read #breakline #html
ADD COMMENT
Topic
Name
9+6 =