Top "Tidy" questions

Tidy is a C library for cleaning up "bad" HTML.

PHP Tidy class not found, error

I was writing some code for repair html string. I read some nice solutions which work with the Tidy PHP …

php tidy htmltidy php-ini
Configuring HTML Tidy to indent tags and nothing else in Notepad++

All I want HTMLTidy to do is indent my HTML document's tags, but it currently also changes the doctype, adds …

html notepad++ configure tidy
Regex to remove xml declaration from a string

First of all, I know this is a bad solution and I shouldn't be doing this. Background: Feel free to …

c# xml regex tidy
Proper usage of JTidy to purify HTML

I am trying to use JTidy (jtidy-r938.jar) to sanitize an input HTML string, but I seem to have problems …

java tidy htmltidy jtidy
DOMDocument: Ignore Duplicate Element IDs

I'm putting some page content (which has been run through Tidy, but doesn't need to be if this is a …

php domdocument tidy
PHP Tidy removes valid tags

I'm using php extension tidy-html to clean up php output. I know that tidy removes invalid tags and can't even …

php html tidy
Prevent tidy from adding html tags

I have a class that generates some html (form elements and table elements), but this class returns all the html …

php html forms tidy
How do I get HTML Tidy to not put newline before closing tags?

HTML Tidy has this infuriating habit of putting a newline before the closing tag. For example: <p>Some …

html text tidy text-formatting htmltidy