Posted by Alvaro G. Vicario on 04/26/07 18:29
*** webrod escribió/wrote (26 Apr 2007 09:04:36 -0700):
> I have some php pages with a lot of HTML code.
> I am looking for a HTML validator tool (like TIDY).
> TIDY is not good enough with PHP tags (it removes a lot of php code).
PHP is *not* HTML so having problems with an HTML validator is exactly what
you could expect.
I presume you want to validate the HTML generated by your PHP script. Just
load your script through a web server and validate the output with the W3C
validators:
http://validator.w3.org
You have two options:
1) If your web is hosted in a public server, feed the validator with the
URL
2) If your web is hosted in a local test server, feed it with a file
upload. Use your browser's "Save as" feature and save it as plain HTML.
If you Google for "Webdeveloper toolbar" you'll find a Firefox extension
and an Internet Explorer toolbar; any of them can assist you in validating
your HTML.
--
-+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
++ Mi sitio sobre programación web: http://bits.demogracia.com
+- Mi web de humor con rayos UVA: http://www.demogracia.com
--
[Back to original message]
|