Web响应输出不带引号的HTML [英] Webresponse output HTML without quotes

查看:112
本文介绍了Web响应输出不带引号的HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



现在我已经创建了一个Web请求并从该请求获得响应。我的回复类型是html。但是在这个html中,双引号在属性中被遗漏了。例如

Hi All,

Now i have create a web request and getting response from that request. My response type is html. But in this html double quotes are missed in attributes. For example

 <form method = POST name=xxxxx> <Body>
    <table width=600 align=middle>
                <tr><td align=middle>Your Test below.</td></tr>
                <tr> 
</table>





我们使用的回应内容类型是text / html



欢迎回复。



问候,

DK



我尝试了什么:



我试过强制使用内容类型=text / html



We are using response content type is text/html

Al replies are welcome.

Regards,
DK

What I have tried:

I have tried force to use content type = "text/html"

推荐答案

如果服务器不是您自己的服务器:无关。但是要意识到HTML5中的属性引用是可选,所以这是有效的HTML,一个体面的HTML5解析器应该没有任何问题。



如果服务器是你的:你没有指定什么服务器或什么服务器端语言,所以我不能给出具体的建议,但这里的答案是调整你的服务器的代码或建立。搜索引擎可能已经为您提供了帮助。
If the server is not your own server: nothing to do about it. But realize that attribute quotes are optional in HTML5 so this is valid HTML, and a decent HTML5 parser should not have any problem with this.

If the server is yours: you don't specify what server or what server-side language so I can't give specific advice, but the answer here is to tweak the code or settins of your server. A search engine can probably help you with this already.


这篇关于Web响应输出不带引号的HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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