|
Posted by webrod on 04/27/07 11:51
> As Alvaro said -http://validator.w3.org.
No, this validates the output (ok you could provide the php file as an
input).
And as I said I would like the tool to do the modification itself.
Like the great TIDY tool (but it removes php code!!).
> How you generate the html (and yes, you are using PHP to generate HTML -
> the link destination in the href is part of html) is unimportant. The
> result is html.
Of course the final result is HTML ;-)
If you consider the output, obviously this is HTML+CSS+Javascript
But if you consider the INPUT, there is 2 ways to build a php page.
How to say.... They are 2 families of developpers ;-)
The first family will ask PHP to generate the HTML code (HTML within
php tag)
The second family will insert PHP tag within HTML tag.
And believe me, this is not the same thing, even if, obviously, the
output is exactly the same HTML.
(I belong to the second family)
Any other idea to validate my templates files which contains PHP code
within HTML tags?
Rod
[Back to original message]
|