How to escape special characters in XML

To escape

  • <
  • >
  • &
  • you simply need to use

    &lt;
    &gt;
    &amp; 
    &quot;
    

    Please Share us:
    Please rate this snippet

    3 thoughts on “How to escape special characters in XML

    1. Pingback:

    Leave a Reply