Login

Tag "xhmtl"

Snippet List

BBCode templatefilter (generate & strip)

Parse a string for [BBCode](http://en.wikipedia.org/wiki/Bbcode) and generate it to (X)HTML by using the [postmarkup libary](http://code.google.com/p/postmarkup/). In your template for generating (X)HTML: {% load bbcode %} {{ value|bbcode }} In your template for removing BBCode fragments: {% load bbcode %} {{ value|strip_bbcode }}

  • template
  • templatetag
  • templatefilter
  • bbcode
  • xhmtl
Read More
Author: b23
  • 2
  • 8

1 snippet posted so far.