Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
BertrandBordage committed Jun 30, 2013
1 parent 5cb0eee commit 401c7dc
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions terms/cms_plugin_processors.py
@@ -1,8 +1,7 @@
# coding: utf-8

from django.utils.encoding import force_text
from django.utils.safestring import mark_safe
from .html import replace_in_html
from .templatetags.terms import replace_terms


def TermsProcessor(instance, placeholder, rendered_content, original_context):
Expand All @@ -12,4 +11,4 @@ def TermsProcessor(instance, placeholder, rendered_content, original_context):
if 'terms' in original_context:
return rendered_content

return mark_safe(force_text(replace_in_html(rendered_content)))
return mark_safe(replace_terms(rendered_content))

0 comments on commit 401c7dc

Please sign in to comment.