CodeIgniter Forums
xml helper: xml_convert() - Why does it convert dashes - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: xml helper: xml_convert() - Why does it convert dashes (/showthread.php?tid=32772)



xml helper: xml_convert() - Why does it convert dashes - El Forum - 08-04-2010

[eluser]j0nxiest[/eluser]
Hi,

What is the reason that the xml_convert() helper function converts dashes to entities(-Wink.

At least as far as i know, the dashes aren't reserved characters in xml, so I'm just wondering why it converts them, it just makes the xml a bit harder to read, manually.