I am writing JSON API call where I am getting html string
ie:
"content":"<p>Being a designer is like being a porn star.
You’re hot & popular for a year or two,
then everyone goes off and finds something new to screw around too. <\/p>\n"
I need to get this string without HTML, so I am using this:
n = e.content.replace(/(<([^>]+)>)/gi, "")
but when in string is Right single quotation mark ’ ’
it will end the string.
Please, how can I filter/replace this quotation mark together with other symbols? When I added quotation mark, it stopped filtering everything.