html 敏捷包和文本中的三角括号
当我使用 Html Agility Pack 加载某些 html 文件时,当 html 标签内的文本具有像这样的三角大括号时,我发现它不会关闭某些标签(查看 InnerHtml 和 OuterHtml 属性),
<span class='title'> Launching app results in an error "Activation of http://<server name="">/TemplateBuilder/?language=1033&locale=1033 resulted in exception"</span>
以便作为输出我得到
<span class='title'> Launching app results in an error "Activation of http://<server name="">/TemplateBuilder/?language=1033&locale=1033 resulted in exception"
有什么可以做的吗保存它?由于输出缺失,因此不会显示整个 html。
谢谢
When I load certain html files with Html Agility Pack, I get that it will not close some tags (looking at InnerHtml and OuterHtml properties) when text within html tags has triangualr braces like this
<span class='title'> Launching app results in an error "Activation of http://<server name="">/TemplateBuilder/?language=1033&locale=1033 resulted in exception"</span>
so as output I get
<span class='title'> Launching app results in an error "Activation of http://<server name="">/TemplateBuilder/?language=1033&locale=1033 resulted in exception"
Is there anything that can be done to preserve it? Because is missing on output, the whole html is not displayed.
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
发生这种情况是因为您的原始 html 太无效。应该是:
这种格式错误的html无法被Html Agility Pack检测到。
This happens because your original html is too invalid. It should be:
This kind of malformed html cannot be detected by the Html Agility Pack.