How to print html in python the normal way

ashishjain.ash at gmail.com ashishjain.ash at gmail.com
Thu Oct 4 07:24:13 EDT 2012


Hi,

I wrote a simple filter as:

@register.filter()
def html(value):
    return '<p>Check</p>'

when I use this filter in my template, it displays html as:

<p>Check</p>

I want to display as:

Check

am I missing something.

- Thanks for your help
Ashish



More information about the Python-list mailing list