How to Construct xml in php with Special Characters?
- by Ramakrishnan
My user enters message with special characters as follows:
this is a test of &&, &&, % as well as '' "", " instead of this is a test of &, &&, % as well as '' "", "
I need to construct XML as follows:
<?xml version='1.0' encoding='iso-8859-1'?>
<success>
<message>
this is a test of &, &&, % as well as '' "", " instead of this is a test of &, &&, % as well as '' "", "
</message>
</success>
Can any body help me?
Thanks in advance