How do I preserve markup tags?

后端 未结 5 1524
太阳男子
太阳男子 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:03

    Try to use

    
    

    instead. From w3schools' documentation on same:

    The element creates a copy of the current node.

    Note: Namespace nodes, child nodes, and attributes of the current node are automatically copied as well!

提交回复
热议问题