Is it possible to insert HTML content in XML document?

前端 未结 4 1758
粉色の甜心
粉色の甜心 2020-12-02 09:48

I need to insert HTML content into an XML document, is this possible or should HTML content be, for example, encoded in BASE64 or with something else like that?

4条回答
  •  死守一世寂寞
    2020-12-02 10:03

    Please see this.

    Text inside a CDATA section will be ignored by the parser.

    http://www.w3schools.com/xml/dom_cdatasection.asp

    This is will help you to understand the basics about XML

提交回复
热议问题