How To Wrapper Text With Domcdatasection

Hi,

I know that yii can return xml data easily by use XmlResponseFormatter. I want to wrapper the html text by using DOMCdataSection. How to do that?

for example:

<content><![CDATA[html code here]]></content>

You can extend XmlResponseFormatter can write your own logic for generating the response.