PHP code inside XML?

前端 未结 7 2169
名媛妹妹
名媛妹妹 2021-01-06 13:56

is it possible to put PHP code inside a XML document to be later executed? For example, can I say \" />

7条回答
  •  渐次进展
    2021-01-06 14:06

    It is possible, but I'd recommend putting it inside of a CDATA block, so you don't have to escape < and similar characters:

     
       
       ]]>
    
    

提交回复
热议问题