Is it possible to have HTML text or CDATA inside an XML attribute?

后端 未结 6 1569
情话喂你
情话喂你 2020-11-29 11:04

I keep getting \"XML parser failure: Unterminated attribute\" with my parser when I attempt to put HTML text or CDATA inside my XML attribute. Is there a way to do this or

6条回答
  •  生来不讨喜
    2020-11-29 11:46

    We can't use CDATA as attribute, but we can bind html using HTML codes. Here is one example:

    to achieve this:

    use XML code like this:

提交回复
热议问题