#242 &lt;%test%&gt; in attribute is parsed to be <%test%>

open
nobody
5
2012-10-08
2011-01-17
Anonymous
No

my xml string is <body tag="&lt;%test;%&gt;"><%test%></body>, after parsing it becomes:
<?xml version="1.0"?>
<html>
<head>
<meta name="generator" content="HTML Tidy, see www.w3.org"/>

</head>
<body tag="&lt;%test;%&gt;" &gt;<br=""> <%test%>
</body>
</html>

Notice the '<%test;%>' in body attribute is becoming '<%test%>', and this caused the whole xml document invalid.. Is there anyway I can avoid this attribute being parsed? I'm using jtidy-04aug2000r7-dev.jar

Discussion

  •  
    Attachments