On Feb 24, 2:36 pm, Federico Capoano <nemesis.des...@libero.it> wrote: > Hello to all, > > simple question: > > I have the following HTML in a template: > <a href="#" title="More details on "{{ villa.name }}" > class="tooltip"> > > But it gets rendered this way: > <a href="#" title="More details on "{{ villa.name }}" class="tooltip"> > > That is, the " entity is converted to the respective character, > ". Very nice, but i'd need " > > Is there a filter or something i can use to tell the Django Template > System to render " ? > > Thanks in advance. > > Federico
If I've understood you correctly, it's not the templating system that is converting it, but the browser. When a browser sees " it will print ". To prevent this, you'll need to double-escape it - ie replace the & with the encoded version, so you have &quot; -- DR. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.