I have some XML obtained by the controller. I want to display this XML in the view. If I use the following in my view:
<? echo $model['responseXml']; ?>
then the HTML parser treats the XML tags like unknown HTML tags.
Thanks.
I have some XML obtained by the controller. I want to display this XML in the view. If I use the following in my view:
<? echo $model['responseXml']; ?>
then the HTML parser treats the XML tags like unknown HTML tags.
Thanks.
if i understood you right CTextHighlighter could do this for you:
http://code.google.com/p/yii/source/browse/trunk/framework/web/widgets/CTextHighlighter.php
Thanks!