开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜