views:

42

answers:

3

I have html encoded text which reads like this:

RT <a href="http://twitter.com/freuter"&gt;@freuter&lt;/a&gt;... 

I want this displayed as html but I am not sure if there is a filter which i can apply to this text to convert the html-encoded text back to html ...

can someone help?

A: 

See: http://stackoverflow.com/questions/275174/how-do-i-perform-html-decoding-encoding-using-python-django

I think this answers your querstion.

Martin
+1  A: 

Try the |safe filter if you want to render all HTML.

Daniel
+2  A: 

As Daniel says, use the {{ tweet|safe }} filter in the html, or mark it safe from the views.

Use django.template.mark_safe()

Lakshman Prasad