Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

paragraph to single line in javascript

const paraToSingleLine = (string) => {
  const newText = string.replace(/s+/g, " ");
  return newText
};
Source by www.textbotonline.com #
 
PREVIOUS NEXT
Tagged: #paragraph #single #line #javascript
ADD COMMENT
Topic
Name
5+3 =