[Django-india] striptags messes spaces
Gaurav Dadhania
gaurav.dadhania at gmail.com
Fri Oct 17 14:35:59 CEST 2014
Can you please give a concrete example when it is adding the non-breaking
space?
I'm not seeing this behaviour:
https://gist.github.com/GVRV/94479855558ef054ba0c
Are you on an older version of Django? Maybe you'll have some luck with
using the `bleach` library for this purpose as recommended in the official
docs as a better alternative
https://docs.djangoproject.com/en/dev/ref/templates/builtins/#striptags
Cheers,
G
On Fri, Oct 17, 2014 at 4:48 PM, Arun Kumar Dharuman <arundhaj at gmail.com>
wrote:
> Hi,
>
> using striptags works fine removing html tags, however it adds for
> any extra spaces.
> how to get rid of striptags converting spaces to " "?
>
> regards
> ArunDhaJ
>
> _______________________________________________
> Django-india mailing list
> Django-india at python.org
> https://mail.python.org/mailman/listinfo/django-india
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/django-india/attachments/20141017/8751acbb/attachment.html>
More information about the Django-india
mailing list