Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #30716

How to print html in python the normal way

Newsgroups comp.lang.python
Date 2012-10-04 04:24 -0700
Message-ID <4d096ff3-e25f-400e-89c6-47483aaacc0d@googlegroups.com> (permalink)
Subject How to print html in python the normal way
From ashishjain.ash@gmail.com

Show all headers | View raw


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

Back to comp.lang.python | Previous | NextNext in thread | Find similar | Unroll thread


Thread

How to print html in python the normal way ashishjain.ash@gmail.com - 2012-10-04 04:24 -0700
  Re: How to print html in python the normal way Chris Angelico <rosuav@gmail.com> - 2012-10-04 21:30 +1000
    Re: How to print html in python the normal way Ramchandra Apte <maniandram01@gmail.com> - 2012-10-04 06:11 -0700
      Re: How to print html in python the normal way Joel Goldstick <joel.goldstick@gmail.com> - 2012-10-04 09:19 -0400
    Re: How to print html in python the normal way Ramchandra Apte <maniandram01@gmail.com> - 2012-10-04 06:11 -0700
    Re: How to print html in python the normal way ashishjain.ash@gmail.com - 2012-10-05 01:20 -0700
    Re: How to print html in python the normal way ashishjain.ash@gmail.com - 2012-10-05 01:20 -0700

csiph-web