Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/h/u/humfrey-0.3.9/humfrey/elasticsearch/templatetags/humfrey_elasticsearch.py   humfrey(Download)
from django.template.defaultfilters import linebreaksbr
 
from humfrey.desc.templatetags.humfrey_desc import sanitize_html
 
register = template.Library()
def search_html(value):
    if isinstance(value, basestring) and value.startswith('<') and value.endswith('>'):
        return sanitize_html(value)
    else:
        return linebreaksbr(value)

src/h/u/humfrey-HEAD/humfrey/elasticsearch/templatetags/humfrey_elasticsearch.py   humfrey(Download)
import rdflib
 
from humfrey.desc.templatetags.humfrey_desc import sanitize_html
from humfrey.linkeddata.resource import Resource
from humfrey.utils.namespaces import NS
def search_html(value):
    if isinstance(value, basestring) and value.startswith('<') and value.endswith('>'):
        return sanitize_html(value)
    else:
        return linebreaksbr(value)