Making HTML source "pretty"

X

x3v0-usenet

Is there a module that will make HTML source "pretty"?

Basically, I want a module that does the same thing as CGI::pretty,
except that I want to use it in a non-CGI environment. I would like to
be able to pass in a string containing the html source and then receive
the pretty version back.

I looked all over cpan and googled up a storm, but found no module like
this (which surprised me).

Thanks for any help,
Ken
 
A

A. Sinan Unur

(e-mail address removed) wrote in @f14g2000cwb.googlegroups.com:
Is there a module that will make HTML source "pretty"?

Basically, I want a module that does the same thing as CGI::pretty,
except that I want to use it in a non-CGI environment. I would like to
be able to pass in a string containing the html source and then receive
the pretty version back.

I looked all over cpan and googled up a storm, but found no module like
this (which surprised me).

http://search.cpan.org/~petdance/HTML-Tidy-1.05_01/

But, if you just want command line usage, I would suggest getting the tidy
utility:

http://tidy.sourceforge.net/

Sinan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,743
Messages
2,569,478
Members
44,899
Latest member
RodneyMcAu

Latest Threads

Top