Split string by HTML entities?

Posted by user366124 on Stack Overflow See other posts from Stack Overflow or by user366124
Published on 2010-06-14T08:20:44Z Indexed on 2010/06/14 8:42 UTC
Read the original article Hit count: 216

Filed under:
|
|
|

My string contain a lot of HTML entities, like this

"Hello <everybody> there"

And I want to split it by HTML entities into this :

Hello
everybody
there

Can anybody suggest me a way to do this please? May be using Regex?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html