I'm trying to remove html tags from string without removing greater \ less then symbols from actual text.
I have been trying that - str.replace(/</?[^>]+(>|$)/g, ' ').replace(/\s+/g, ' ').trim()
Which is removing also the greater / less then symbols. Appreciate the help!