Reply to Re: Tool to validate HTML code with PHP tags?

Your name:

Reply:


Posted by webrod on 04/27/07 11:59

> PHP is *not* HTML

of course!!

>so having problems with an HTML validator is exactly what
> you could expect.
HTML validator means that the HTML will be validated in a page.
It does not mean that you can only validate a .html file.
The proof with TIDY. It is able to work with php tags (you even have
some option to deal with php).
Unfortunately, it does that badly. A lot of bugs.
So I am wondering if there is another tool like TIDy but without bugs.
I use the ZEND IDE but it does not validate HTML code.


> 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

I know this website, but unfortunatelly, it does not automatically
update the code (for example to update <br> to <br/>)
And it works on the output, not on the input (except if you provide
the php file but I guess it doesn't like php code. It's not the goal
of this website to validate XHTML code in a php page)

Thanks for your help

Rod

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация