How do I preserve markup tags?

后端 未结 5 1522
太阳男子
太阳男子 2021-02-18 23:52

I\'ve got an XML document containing news stories, and the body element of a news story contains p tags amongst the plain text. When I use XSL to retrieve the body, e.g.

5条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-19 00:18

    If you have control over the input document, CDATA is the right way to go.

提交回复
热议问题