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

  • From: Bear Xu <bear.xy@xxxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Thu, 28 May 2009 19:04:54 +0800

Dear Ralf,
thank you very much, I will try.
Bear


On 5/27/09, Delphi Inspiration <delphi@xxxxxxxx> wrote:
>
> 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: