Answers for "remove spaces and line breaks javascript"

0

remove spaces and line breaks javascript

const originalString = `
  <div>
    <p>Hey that's <span>somthing</span></p>
  </div>
`;

const strippedString = originalString.replace(/(<([^>]+)>)/gi, "");

console.log(strippedString);
Posted by: Guest on April-15-2021

Code answers related to "remove spaces and line breaks javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language