Is it possible to insert HTML content in XML document?

前端 未结 4 1764
粉色の甜心
粉色の甜心 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:08

    You can include HTML content. One possibility is encoding it in BASE64 as you have mentioned.

    Another might be using CDATA tags.

    Example using CDATA:

    
        Your HTML title
        
            
                
    
                                     
                  
提交回复
热议问题