处理 XML 数据

有效地使用 CDATA 区域

返回文章

Safari 和 Chrome 中显示的 CDATA 及错误字符的文本版本(图 2)
CDATA Section in Action

A sample paragraph:

The pug snoring on the couch next to me is extremely cute.

Markup version:

<p>The pug snoring on the couch next to me is <em<extremely</em> cute.</p>

CDATA version:

Uh,

The pug snoring on the couch next to me is extremely cute.

]]> where?

Wait, what?

返回文章