#2221: Mako template engine always escapes html
------------------------+---------------------------------------------------
 Reporter:  kikidonk    |       Owner:       
     Type:  defect      |      Status:  new  
 Priority:  normal      |   Milestone:  2.0  
Component:  TurboGears  |     Version:  trunk
 Severity:  normal      |    Keywords:       
------------------------+---------------------------------------------------
 Imagine I wanted to render a plain-text template for inclusion in an email
 using mako. Currently if i just use the tg.render function, the fields
 will be html-escaped which doesn't make sense in a text-template.

 This is because there is a default filter setup in the TemplateLoader to
 esapce everything with paste's escape function.

 What is the correct solution here.. i don't really know.

 A workaround is to use the ${xxx|n} filter to prevent html escaping in a
 text template

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2221>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to