Skip to content

Instantly share code, notes, and snippets.

@GVRV
Created October 17, 2014 12:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GVRV/94479855558ef054ba0c to your computer and use it in GitHub Desktop.
Save GVRV/94479855558ef054ba0c to your computer and use it in GitHub Desktop.
Django striptags adding   ?
In [19]: from django import VERSION
In [20]: VERSION
Out[20]: (1, 6, 5, 'final', 0)
In [21]: from django.utils.html import strip_tags
In [22]: strip_tags("<html> this <p>is a</p> <br/> test</html>")
Out[22]: u' this is a test'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment