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