Problem with < and > embedded in text

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sinbad
    New Member
    • Feb 2012
    • 1

    Problem with < and > embedded in text

    When I send to a browser an XML string like this:

    ab < cd > ef

    The browser outputs this:

    ab < cd > ef

    But when I send the browser this:

    ab &lt;cd&gt; ef

    instead of outputting this:

    ab <cd> ef

    it outputs this:

    ab ef

    Why? And how can I embed entities in text without their having an effect on the text?
Working...