On Tue, Jul 15, 2008 at 11:00 AM, Fernando Rodríguez <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm using this simple template with flatpages: > > <html> > <head> > <title>{{ flatpage.title|escape }}</title> > </head> > > <body> > <h1>{{flatpage.title|escape}}</h1> > {{ flatpage.content|escape }} > </body> > > </html> > > I was expecting to see all accented chars in title and contents to be > displayed properly escaped, however, I'm seing the "raw" chars. What am > I doing wrong?
You can use the force_escape filter to escape <, >, quotes and ampersands. Arien --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---