XML in a smarty template without htmlencoding....

Ok, this should be simple…In my addon controller I am putting some XML into a php variable


if ( !defined('AREA') ) { die('Access denied'); }

if ($mode == 'getfeature') {
$feature_id=$_REQUEST['feature_id'];
$product_id=0;
$feature_type='S';
$get_images = false;
$vars = fn_get_product_feature_variants($feature_id, $product_id, $feature_type, $get_images,$lang_code = CART_LANGUAGE);
$xml=serialize_object($vars,'product_feature');
$xml = str_replace('','',$xml);
$xml = str_replace('
','',$xml);
$view->assign('xml', $xml);
$status == CONTROLLER_STATUS_OK;
}
Then in the corresponding smarty template file for the controller I want to display the XML


{$xml}however, I think the $view->assign is automatically htmlencoding my xml. Is there another way to do this so my XML remains unchanged?



OR



is there a controller status I can return to stop cs-cart from proceeding and then I could just echo the XML myself?



OR some other way I haven’t thought of?



Thanks,



Scott

I don’t know if this will work but it’s worked on most of my projects:

{$xml|unescape}

Thanks Sno,



It works great!