xmpp.chapril.org-conversejs/trans/templatetags/weblate.py

13 lines
295 B
Python
Raw Normal View History

2012-03-01 11:11:25 +01:00
from django.template.defaultfilters import stringfilter
from django.utils.html import escape
from django.utils.safestring import mark_safe
from django import template
register = template.Library()
@register.filter
@stringfilter
def fmttranslation(s):
s = escape(s)
return mark_safe(s)