How do I preserve markup tags?

后端 未结 5 1526
太阳男子
太阳男子 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-18 23:54

    It is because the engine is interpreting the

    tag (excluding it for the output). You need to specify you want the content "as it is", using the "disable-output-escaping=yes|no" attribute.

    
    

提交回复
热议问题