JTidy preserve CSS rules
Looking for a way to take some html like:
&开发者_如何学Golt;html>
<head>
<style>
*.td {
font-weight: bold;
}
</style>
</head>
<body>
<div>blah blah blah</div>
</body>
</html>
And run it through JTidy, and keep the CSS rule in the output of the parser.
The tag is gone in the final output.
That's not HTML. It is a mixture of CSS and HTML. You can't expect an HTML processor to understand it the way you do.
We had the word2000 flag set on JTidy. That is stripping the style tags.
精彩评论