在XML中嵌入两个标记之间的特殊标记
我在XML中嵌入HTML标签有很多错误。
像这样:
<?xml version="1.0" encoding="UTF-8"?>
<main>
<note>
<category>computers</category>
<id>1</id>
<price>47072.00</price>
<description>
<p>Warranty - 24<br />Product model code - N150
Plus <br />
</description>
</note>
</main>
我需要在代码之间插入此代码...以使用PHP读取XML文件
。
像这样:
<description>
<![CDATA[<html
...HTML CODE IS HERE
]]>
</description>
没有找到相关结果
已邀请:
1 个回复
惭法搽
打开xml文件作为数组。