I understand the need for web pages to denote the 5 HTML special
characters >, &, <, ', and " with alternate representations like
".
(These 5 are the *only* special characters in HTML right?)
What I don't understand is why an HTML page encoded with UTF-8 would
use this ...; format for other
If you have plain text (After you have removed out all HTML tags), a
simple URLIZE filter would work, and allow links to be clickable.
more details:
http://docs.djangoproject.com/en/dev/ref/templates/builtins/#urlize
On Tue, Aug 25, 2009 at 2:27 PM, Matias wrote:
> Hi,
> I think there is no s
Hi,
I think there is no such filter, so you'll have to code it.
This
http://docs.djangoproject.com/en/dev/howto/custom-template-tags/#filters-and-auto-escapingmay
help
HTH,
Matias.
On Tue, Aug 25, 2009 at 5:54 AM, When ideas fail
wrote:
>
> Thanks, can i strip out all tags other than tags.
>
>
Thanks, can i strip out all tags other than tags.
I would like people to be able to put links in comments.
Andrew
On 25 Aug, 03:42, Parag Shah wrote:
> Hi,
>
> You can use the strip_tags function to strip all html from text.
>
> from django.utils.html import strip_tags
>
> In your view
> comm
Hi,
You can use the strip_tags function to strip all html from text.
from django.utils.html import strip_tags
In your view
comment = strip_tags(request.POST["comment"])
--
Regards
Parag
On Tue, Aug 25, 2009 at 4:25 AM, When ideas fail
wrote:
>
> Hello, i want to allow users to post comments a
Hello, i want to allow users to post comments and I don't want them to
be allowed to put html in comments.
However I would like the to be able to use paragraph p tags and
tags but not anything other. Could someone tell me how to do this?
Thanks
Andrew
--~--~-~--~~~-
6 matches
Mail list logo