W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2004

Re: Using string not file

From: Doug Kearns <djkea2@mugca.its.monash.edu.au>
Date: Wed, 21 Jan 2004 19:53:02 +1100
To: html-tidy@w3.org
Message-ID: <20040121085302.GA3701@localhost.localdomain>

On Wed, Jan 14, 2004 at 04:23:09PM -0500, Joanna Fowlie wrote:

> Now what I really want to do, is provide tidy with a string of html
> (from posting  an html form) instead of "wordhtml.htm". I was going to
> do this with the PHP extension http://pecl.php.net/package/tidy but my
> hosting provider won't install it. So I've been trying to do this from
> the command line, but I can't figure out how to do this. 

(0)% echo "Hello world" | tidy
line 1 column 1 - Warning: missing <!DOCTYPE> declaration
line 1 column 1 - Warning: plain text isn't allowed in <head> elements
line 1 column 1 - Warning: inserting missing 'title' element
Info: Document content looks like HTML 3.2
3 warnings, 0 errors were found!

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
<meta name="generator" content=
"HTML Tidy for Linux/x86 (vers 1st November 2003), see www.w3.org">
Hello world

To learn more about HTML Tidy see http://tidy.sourceforge.net
Please send bug reports to html-tidy@w3.org
HTML and CSS specifications are available from http://www.w3.org/
Lobby your company to join W3C, see http://www.w3.org/Consortium

Received on Wednesday, 21 January 2004 05:01:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:54 UTC