I'm trying to output some HTML in an XML template and Symfony's escaping method is messing it up. So I tried making a copy of settings.yml in the module's config folder, but it seems to be completely ignored. Is there an easy way to change the escaping_strategy and/or escaping_method settings per module or even per template?
While output escaping is turned on you still have access to the raw value through $sf_data
. For example, if the HTML you're trying to output was stored in a variable called html in your action:
$this->html = '<b>My HTML</b>';
You could get the unescaped value with this:
<?php echo $sf_data->getRaw('html') ?>
I don't believe there is a way to disable this functionality on a per-module basis.