Page 1 of 1
HTML Tidy
Posted: Mon Jul 02, 2007 5:25 pm
by alex.barylski
I need an online HTML code beautifier.
I searched for something like a FireFox extension but only found validators. I don't care if the code isn't 100% valid so much as I do tags are closed and nested properly. Formatting of white space and tabbing owuld be nice too...
Anyone know of a online site which taks HTML and beautifies it?
I really don't want to use a downloaded application but will if nessecary.
Posted: Mon Jul 02, 2007 6:11 pm
by RobertGonzalez
Posted: Mon Jul 02, 2007 6:16 pm
by alex.barylski
Haha...I didn't even think of that...
AC there are some keywords you might want to add to the web site to assist in driving up SEO rankings.
Edit: Just tried but it seems to strip the <html><head> tags??? Anyway around that?
Edit2 Not a big deal as I just copied the tags from the original into the validated source. Would be really awesome if:
a. The output/result HTML was:
1. Stored in a TEXTAREA for quick and easy copying
2. Actually beautified with spacing and formatting

Posted: Mon Jul 02, 2007 6:29 pm
by superdezign
Hehe. He's got a whole page on why HTML Purifier is the best one.
And it doesn't tab code? Really?
Posted: Mon Jul 02, 2007 6:58 pm
by RobertGonzalez
It retains tabs and formatting, but doesn't add them.
Posted: Tue Jul 03, 2007 11:54 am
by Luke
I don't really see that as being within its scope... it isn't mean to make your code "pretty" so much as valid & safe
Haha...I didn't even think of that...
AC there are some keywords you might want to add to the web site to assist in driving up SEO rankings.
Are you serious?? HTML Purifier has been ALL OVER this site for like a week. You have
asked questions about what it is. You even
posted a thread suggesting that we create a forum for it. Do you even read people's responses?
Posted: Tue Jul 03, 2007 12:11 pm
by Ambush Commander
While HTML Purifier's feature-set is converging with Dave Raggett's HTML Tidy, it still does not support the structural elements such as <html>, <body> or <head> that would be necessary for it to clean up an entire page.
You can
download HTML Tidy, which is basically what you're looking for (it beautifies, validates, etc. It doesn't clean XSS, but that's probably not what you need). You can also use
this web interface to HTML Tidy.
And it doesn't tab code? Really?
Nope, although it can use Tidy to indent code if you want it to.
Posted: Tue Jul 03, 2007 4:43 pm
by pickle
Look for the "Html Validator" add-on for Firefox. It's currently at v0.8.3.9.
Posted: Tue Jul 03, 2007 8:28 pm
by alex.barylski
The Ninja Space Goat wrote:I don't really see that as being within its scope... it isn't mean to make your code "pretty" so much as valid & safe
Haha...I didn't even think of that...
AC there are some keywords you might want to add to the web site to assist in driving up SEO rankings.
Are you serious?? HTML Purifier has been ALL OVER this site for like a week. You have
asked questions about what it is. You even
posted a thread suggesting that we create a forum for it. Do you even read people's responses?
I was serious and still am yup.
