[yunqa.de] Re: how to Tidy a piece of HTML?

  • From: Delphi Inspiration <delphi@xxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Wed, 27 May 2009 14:32:25 +0200

Hello Bear Xu,

>How to do not add additional content to output? 

This is a feature, not a bug. Your HTML is incomplete, so Tidy adds the missing 
parts for you.

>how to remove the generator meta?

  tidyOptSetBool(TidyHandle, TidyMark, 0);

>for example, input is '<td>', i want to the output is still '<td>', not as 
>below(added much content to be a html file):

Try playing with these options:

  tidyOptSetBool(TidyHandle, TidyBodyOnly, 1);
  tidyOptSetBool(TidyHandle, TidyHideEndTags, 1);

The DITidy_Options.dpr demo project list all available options, including their 
default value and description.

Ralf 

_______________________________________________
Delphi Inspiration mailing list
yunqa@xxxxxxxxxxxxx
//www.freelists.org/list/yunqa



Other related posts: