How would you stop Deform from escaping HTML in field titles or descriptions when rendering? My current best solution is to search/replace the returned rendered HTML string with what I need.
Deform by default will escape all HTML characters to HTML entities, I want to add an tag in one of the field descriptions.
Copy the default widget template and modify it to allow unescaped entries.
Descriptions are placed by
mapping.pt. It cannot be overridden per widget basis - the mapping template is the same for all the items in the form. You can override mapping by passingitem_templateto your widget container (Form, Form section). Non-tested example:You can use TAL
structureexpression to unescape HTML.E.g. example
raw_description_mapping.ptfor Deform 2:You also need to modify your Pyramid application to load overridden Deform templates when constructing WSGI application with Pyramid's Configurator: