I have html encoded text which reads like this:
RT <a href="http://twitter.com/freuter">@freuter</a>...
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?
As Daniel says, use the {{ tweet|safe }}
filter in the html, or mark it safe from the views.
Use django.template.mark_safe()
Try the |safe filter if you want to render all HTML.
See: How do I perform HTML decoding/encoding using Python/Django?
I think this answers your querstion.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With