Hi Adam,
Yes, you are correct in what you are saying. This is because basically we have a CMS that uses Microsofts DHTML Active X component for the Text Editor.
When I paste the relevant HTML entities into the editor, such as (β), and save it, the CMS copies the contents of the editor to...
Thanks Adam.
I changed it slightly to be:
return str.replace(/&([A-Za-z]+;)/g,"??$1");
as it was picking up normal (&) by themselves. So it works the way I expected. Do you think this is the right way to do it.
Hi All,
I am wanting to search a string for the occurence of an expression, and then change the expression in the string.
I need to search for HTML entities, such as Beta(β), Trademark(™)....etc
Once one has been found, I want to replace the beginning "&" with say "??" or something...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.