0

Is there a simple way to escape All symbols in HTML?

I took into account ways such as: What characters do I need to escape in XML documents? or Escaping HTML strings with jQuery and related, but only five symbols are escaped. I could list all symbols and their entities, but I would like not to.

If my browser can so easily change © into © why can't I do it easily the other way around?

Community
  • 1
  • 1
Kornel Dylski
  • 1,233
  • 14
  • 17
  • Why would you want to do that? And what do you mean by “all symbols”? If you escape all characters in an HTML document, it isn’t an HTML document any more. – Jukka K. Korpela Jun 29 '13 at 13:41
  • By "all symbols" you mean "all symbols for which a [named character entity](http://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references#Character_entity_references_in_HTML) is defined"? And why would you want to do that - it's not necessary to escape these? – Bergi Jun 29 '13 at 13:42

0 Answers0