2

Following this question (I have the same problem), how do I convert a string that has entities like   to a string those entities as  , with javascript/jquery ?

1

2 Answers 2

1

php.js can be useful to this:

http://phpjs.org/functions/html_entity_decode:424
http://phpjs.org/functions/htmlspecialchars_decode:427
http://phpjs.org/functions/htmlentities:425

Sign up to request clarification or add additional context in comments.

Comments

1
str.replace(/$#160/g, '&nbsp');

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.