Did I find the right examples for you? yes no

All Samples(1091)  |  Call(555)  |  Derive(0)  |  Import(536)

            @wraps(func)
    def wrapper(*args, **kwargs):
        for arg in list(args) + list(six.itervalues(kwargs)):
            if isinstance(arg, Promise):
                break
        else:
            return func(*args, **kwargs)
        return lazy(func, *resultclasses)(*args, **kwargs)
        


src/h/u/hunch-sample-app-HEAD/django/template/defaultfilters.py   hunch-sample-app(Download)
def striptags(value):
    """Strips all [X]HTML tags."""
    from django.utils.html import strip_tags
    return strip_tags(value)
striptags.is_safe = True

src/d/j/django-socketio-0.3.9/django_socketio/example_project/chat/events.py   django-socketio(Download)
 
from django.shortcuts import get_object_or_404
from django.utils.html import strip_tags
from django_socketio import events
 
    room = get_object_or_404(ChatRoom, id=message["room"])
    if message["action"] == "start":
        name = strip_tags(message["name"])
        user, created = room.users.get_or_create(name=name)
        if not created:
            return
        if message["action"] == "message":
            message["message"] = strip_tags(message["message"])
            message["name"] = user.name
            socket.send_and_broadcast_channel(message)

src/a/p/appscale-HEAD/AppServer/lib/django-1.5/django/template/defaultfilters.py   appscale(Download)
from django.utils.dateformat import format, time_format
from django.utils.encoding import force_text, iri_to_uri
from django.utils.html import (conditional_escape, escapejs, fix_ampersands,
    escape, urlize as urlize_impl, linebreaks, strip_tags)
from django.utils.http import urlquote
def striptags(value):
    """Strips all [X]HTML tags."""
    return strip_tags(value)
 
###################

src/g/o/google-app-engine-HEAD/lib/django-1.5/django/template/defaultfilters.py   google-app-engine(Download)
from django.utils.dateformat import format, time_format
from django.utils.encoding import force_text, iri_to_uri
from django.utils.html import (conditional_escape, escapejs, fix_ampersands,
    escape, urlize as urlize_impl, linebreaks, strip_tags)
from django.utils.http import urlquote
def striptags(value):
    """Strips all [X]HTML tags."""
    return strip_tags(value)
 
###################

src/a/n/antisocial-HEAD/ve/lib/python2.7/site-packages/django/template/defaultfilters.py   antisocial(Download)
from django.utils.dateformat import format, time_format
from django.utils.encoding import force_text, iri_to_uri
from django.utils.html import (conditional_escape, escapejs, fix_ampersands,
    escape, urlize as urlize_impl, linebreaks, strip_tags, avoid_wrapping)
from django.utils.http import urlquote
def striptags(value):
    """Strips all [X]HTML tags."""
    return strip_tags(value)
 
###################

src/r/o/rolf-HEAD/ve/lib/python2.7/site-packages/django/template/defaultfilters.py   rolf(Download)
from django.utils.dateformat import format, time_format
from django.utils.encoding import force_text, iri_to_uri
from django.utils.html import (conditional_escape, escapejs, fix_ampersands,
    escape, urlize as urlize_impl, linebreaks, strip_tags, avoid_wrapping)
from django.utils.http import urlquote
def striptags(value):
    """Strips all [X]HTML tags."""
    return strip_tags(value)
 
###################

src/s/o/socorro-HEAD/webapp-django/vendor/lib/python/django/template/defaultfilters.py   socorro(Download)
from django.utils.dateformat import format, time_format
from django.utils.encoding import force_text, iri_to_uri
from django.utils.html import (conditional_escape, escapejs, fix_ampersands,
    escape, urlize as urlize_impl, linebreaks, strip_tags)
from django.utils.http import urlquote
def striptags(value):
    """Strips all [X]HTML tags."""
    return strip_tags(value)
 
###################

src/t/e/tendenci-5.1.333/tendenci/apps/forms_builder/forms/search_indexes.py   tendenci(Download)
from django.utils.html import strip_tags, strip_entities
 
from haystack import indexes
from haystack import site
from tendenci.apps.forms_builder.forms.models import Form
    def prepare_intro(self, obj):
        intro = obj.intro
        intro = strip_tags(intro)
        intro = strip_entities(intro)
        return intro
 
    def prepare_response(self, obj):
        response = obj.response
        response = strip_tags(response)

src/d/j/Django-1.6.4/django/template/defaultfilters.py   Django(Download)
from django.utils.dateformat import format, time_format
from django.utils.encoding import force_text, iri_to_uri
from django.utils.html import (conditional_escape, escapejs, fix_ampersands,
    escape, urlize as urlize_impl, linebreaks, strip_tags, avoid_wrapping)
from django.utils.http import urlquote
def striptags(value):
    """Strips all [X]HTML tags."""
    return strip_tags(value)
 
###################

src/p/o/pourover-HEAD/buster/lib/django/template/defaultfilters.py   pourover(Download)
from django.utils.dateformat import format, time_format
from django.utils.encoding import force_text, iri_to_uri
from django.utils.html import (conditional_escape, escapejs, fix_ampersands,
    escape, urlize as urlize_impl, linebreaks, strip_tags, avoid_wrapping)
from django.utils.http import urlquote
def striptags(value):
    """Strips all [X]HTML tags."""
    return strip_tags(value)
 
###################

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next