Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by quietbritishjim

2 hours ago

Surely whatever is putting in the <pasted_content ...> tags is also escaping the pasted content with e.g. < to &lt;

3 comments

quietbritishjim

Reply

nialse  1 hour ago

Put in a CDATA section and all bets are off. Maybe that is the next benchmark? Parse this XML correctly. Oh, by the way it must be valid, and here is a DTD. Using code is cheating.

  • quietbritishjim  1 hour ago

    But <![CDATA[xyz]]> would become &lt;![CDATA[some stuff]]>

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities