lautr.com

Hannes Blog for Development and Stuff besides

7. Juli 2010
von Hannes
Keine Kommentare

Convert all applicable characters to Numeric entities for use in XML

If you wanna make sure your text gets parsed correctly you mostly use htmlentities. However this method has 2 downsides: 1. It does not convert in to numeric entities so you’ll have problems when parsing as XML 2. It does NOT cover all characters that are like to show up. Weiterlesen