Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
quietbritishjim
· 2mo ago · 0 comments
Surely whatever is putting in the <pasted_content ...> tags is also escaping the pasted content with e.g. < to <
Comments
[–]
nialse
2mo 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
OP
2mo ago
But <![CDATA[xyz]]> would become <![CDATA[some stuff]]>