用php验证html也是如此 [英] Validate html with php also

查看:60
本文介绍了用php验证html也是如此的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在包含php的页面中验证html页面?因为验证器会发现许多错误,例如缺少< / title>标签。它在那里,但在PHP内。有什么想法吗?

How do I go about validating a page of html when it contains php within? Because the validators pick up lots of errors like missing </title> tag. It''s there but within php. Any ideas?

推荐答案

如果像HTTP服务器一样执行文件,验证输出怎么样?

最后,那个是您的客户将看到的,所以这就是您应该验证的。
How about executing the file, as a HTTP server would, and validating the output?
In the end, that is what your client will be seeing, so that is what you should be validating anyways.



如何以HTTP格式执行文件服务器会,并验证输出?

最后,这是你的客户将看到的,所以这是你应该验证的。
How about executing the file, as a HTTP server would, and validating the output?
In the end, that is what your client will be seeing, so that is what you should be validating anyways.



是的,可以做到这一点。只是每次都要查看源代码,复制和粘贴到验证器中会有点乏味。特别是100多个文件。但如果这是唯一的选择,我会做的。


谢谢。

Yeah can do that. Just would get a little tedious having to view source, copy and paste each time into a validator. Especially with 100+ files. But if that''s the only option, I''ll do it.

Thanks.



是的可以做到这一点。只是每次都要查看源代码,复制和粘贴到验证器中会有点乏味。特别是100多个文件。但如果这是唯一的选择,我会做的。


谢谢。
Yeah can do that. Just would get a little tedious having to view source, copy and paste each time into a validator. Especially with 100+ files. But if that''s the only option, I''ll do it.

Thanks.



您使用的验证器是什么?您可以使用在线人员,然后输入您的最终输出网页。所以不需要查看源。

What validator are you using? You could use online one''s and just enter in your webpage that has the final output. So no view source required.


这篇关于用php验证html也是如此的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆