Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(41)  |  Call(21)  |  Derive(0)  |  Import(20)
Return the given HTML with all tags stripped.

        def strip_tags(value):
    """
        Return the given HTML with all tags stripped.
    """
    return re.sub(r'<[^>]*?>', '', value)        
        


src/b/a/baas-0.2.2/baas/plugins/example.py   baas(Download)
# -*- coding: utf-8 -*-
# Copyright 2009 Martin Borho <martin@borho.net>
# GPL - see License.txt for details
from baas.core.plugins import Plugin
from baas.core.helpers import strip_tags, xmlify
    def render_xmpp(self, data, title):
        #result = title+"\n" #Would be the title
        result = data
        return strip_tags(result)
 

src/b/a/baas-HEAD/baas/plugins/example.py   baas(Download)
# -*- coding: utf-8 -*-
# Copyright 2009 Martin Borho <martin@borho.net>
# GPL - see License.txt for details
from baas.core.plugins import Plugin
from baas.core.helpers import strip_tags, xmlify
    def render_xmpp(self, data, title):
        #result = title+"\n" #Would be the title
        result = data
        return strip_tags(result)
 

src/b/a/baas-0.2.2/baas/plugins/twingly.py   baas(Download)
from urllib import quote_plus
from baas.core.plugins import Plugin
from baas.core.helpers import strip_tags, xmlify, htmlentities_decode, load_feed
 
class Twingly(Plugin):
        else:
            result += 'No sites found!'
        return strip_tags(result)
 
    def render_wave_blog(self, data, title):
        else:
            result += 'No sites found!'
        return strip_tags(result)
 
    def render_wave_microblog(self, data, title):

src/b/a/baas-HEAD/baas/plugins/twingly.py   baas(Download)
from urllib import quote_plus
from baas.core.plugins import Plugin
from baas.core.helpers import strip_tags, xmlify, htmlentities_decode, load_feed
 
class Twingly(Plugin):
        else:
            result += 'No sites found!'
        return strip_tags(result)
 
    def render_wave_blog(self, data, title):
        else:
            result += 'No sites found!'
        return strip_tags(result)
 
    def render_wave_microblog(self, data, title):

src/b/a/baas-0.2.2/baas/plugins/maemo.py   baas(Download)
from urllib import urlencode, quote_plus
from baas.core.plugins import Plugin
from baas.core.helpers import strip_tags, xmlify, htmlentities_decode, load_url
 
try:
        else:
            result += 'No hits found!'
        return strip_tags(result)
 
    def render_wave(self, hits, title):

src/b/a/baas-0.2.2/baas/plugins/gsearch.py   baas(Download)
from urllib import urlencode, quote_plus
from baas.core.plugins import Plugin
from baas.core.helpers import strip_tags, xmlify, htmlentities_decode, load_url
 
try:
        else:
            result += 'No hits found!'
        return strip_tags(result)
 
    def render_wave(self, hits, title):

src/b/a/baas-HEAD/baas/plugins/maemo.py   baas(Download)
from urllib import urlencode, quote_plus
from baas.core.plugins import Plugin
from baas.core.helpers import strip_tags, xmlify, htmlentities_decode, load_url
 
try:
        else:
            result += 'No hits found!'
        return strip_tags(result)
 
    def render_wave(self, hits, title):

src/b/a/baas-HEAD/baas/plugins/gsearch.py   baas(Download)
from urllib import urlencode, quote_plus
from baas.core.plugins import Plugin
from baas.core.helpers import strip_tags, xmlify, htmlentities_decode, load_url
 
try:
        else:
            result += 'No hits found!'
        return strip_tags(result)
 
    def render_wave(self, hits, title):

src/b/a/baas-0.2.2/baas/plugins/translate.py   baas(Download)
from urllib import quote_plus
from baas.core.plugins import Plugin
from baas.core.helpers import strip_tags, xmlify, htmlentities_decode, load_url
 
try:
        else:
            result = 'Text translation failed'
        return strip_tags(result)
 
    def render_wave(self, data, title):

src/b/a/baas-0.2.2/baas/plugins/delicious.py   baas(Download)
from baas.core.yqlapi import YQLApi
from baas.core.plugins import Plugin
from baas.core.helpers import format_pub_date, strip_tags, xmlify
 
class Delicious (Plugin):
        else:
            result += 'No hits found!'
        return strip_tags(result)
 
    def render_wave(self, hits, title):

  1 | 2  Next