How to allow certain HTML tags in a form field in Symfony 1.2
        Posted  
        
            by camomileCase
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by camomileCase
        
        
        
        Published on 2009-08-24T04:49:37Z
        Indexed on 
            2010/06/16
            4:22 UTC
        
        
        Read the original article
        Hit count: 244
        
I'm playing around with Symfony and have encountered a road block.
I created a model "CmsPage" which has a field called "content" which is stored as a clob (this is specific to doctrine I believe). When I created the app I set "--escaping-strategy=on" so if I enter any html when editing a CmsPage that gets encoded with html entities or something along those lines. I would like to allow html in this field and a quick googling hasn't helped much. Maybe I'm searching for the wrong terms.
Anywho I would like to disable character escaping for this field and possibly only allow a small selection of html tags. What is the correct way to do this in Symfony?
© Stack Overflow or respective owner