# XML Parsing using PHP {Intermediate} - How to escape illegal characters?

**URL:** <https://forum.kirupa.com/t/xml-parsing-using-php-intermediate-how-to-escape-illegal-characters/177114>\
**Category:** programming\
**Created:** [January 30, 2006, 11:23am UTC](https://forum.kirupa.com/t/xml-parsing-using-php-intermediate-how-to-escape-illegal-characters/177114 "2006-01-30T11:23:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimmy\_jazz](https://avatars.discourse-cdn.com/v4/letter/j/dfb087/32.png) [@jimmy\_jazz](https://forum.kirupa.com/u/jimmy_jazz)\
**Post date:** [January 30, 2006, 11:23am UTC](https://forum.kirupa.com/t/xml-parsing-using-php-intermediate-how-to-escape-illegal-characters/177114/1 "2006-01-30T11:23:23Z")

</div>

Hi

this xml tutorial is great but I need to have html tags (\<a href""\>\</a\> etc…) in the xml and when i do the results are not good.  
the tutorial mentions escaping illegal characters like “\<” but doesnt say how…

Any help would be great

Jimmy
