Let's say I have a string: "A—B"

I want to set the contents of some element, or even the value of some
attribute of an element, to "A---B" (where --- is the unicode for the
— entity).

Is there are generic way to escape entities?

Reply via email to