I have extended the standard symfony sfWebResponse and I would like to modify the html in the response.
The only way I have managed to get this to work is by replicating the standard sendContent function and modifying the html in $content before it is echoed.
Am I going about this the wrong way? (I have a feeling I am).
you can listen response.filter_content event :
http://www.symfony-project.org/reference/1_4/en/15-Events#chapter_15_sub_response_filter_content
Like here : https://github.com/vjousse/symfony-1.4/blob/master/lib/log/sfWebDebugLogger.class.php#L49