开发者

How to use CDATA in html documents?

开发者 https://www.devze.com 2023-01-18 21:53 出处:网络
What is wrong with my HTML document? <html> <body> <p><![CDATA[I can\'t see this开发者_如何学运维 text :(]]></p>

What is wrong with my HTML document?

<html>
  <body>
    <p><![CDATA[I can't see this开发者_如何学运维 text :(]]></p>
  </body>
</html>

Why don't I see the text inside CDATA?


Explicit CDATA sections are, in practice, unsupported in text/html documents. They are marked as a feature authors should avoid because they have limited support.

Your browser is probably treating it as an unknown element.

0

精彩评论

暂无评论...
验证码 换一张
取 消