How to normalize (join together) bold nodes in HTML DOM?

itsarnavb

Arnav Bansal

Posted on September 1, 2019

How to normalize (join together) bold nodes in HTML DOM?

I'm building a contenteditable editor which involves multiple rows of contenteditable divs

I want to turn this:

Lorem <b>Ipsum</b><b> Dolor</b> Sit Amet

into this:

Lorem <b>Ipsum Dolor</b> Sit Amet

💖 💪 🙅 🚩
itsarnavb
Arnav Bansal

Posted on September 1, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related