Did I find the right examples for you? yes no

All Samples(9)  |  Call(4)  |  Derive(0)  |  Import(5)
Created by Fredrik Lundh (http://effbot.org/zone/re-sub.htm#unescape-html)

        def unescape_html(text):
    """Created by Fredrik Lundh (http://effbot.org/zone/re-sub.htm#unescape-html)"""
    def fixup(m):
        text = m.group(0)
        if text[:2] == "&#":
            # character reference
            try:
                if text[:3] == "&#x":
                    return unichr(int(text[3:-1], 16))
                else:
                    return unichr(int(text[2:-1]))
            except ValueError:
                pass
        else:
            # named entity
            try:
                text = unichr(htmlentitydefs.name2codepoint[text[1:-1]])
            except KeyError:
                pass
        return text # leave as is
    return re.sub("&#?\w+;", fixup, text)
        


src/c/l/cloud-services-notifications-HEAD/src/cloudsn/providers/tweepy/models.py   cloud-services-notifications(Download)
 
from error import TweepError
from utils import parse_datetime, parse_html_value, parse_a_href, \
        parse_search_datetime, unescape_html
 
                setattr(result, k, parse_search_datetime(v))
            elif k == 'source':
                setattr(result, k, parse_html_value(unescape_html(v)))
            else:
                setattr(result, k, v)

src/m/e/me2-0.1a1/me2/contrib/tweepy/models.py   me2(Download)
 
from error import TweepError
from utils import parse_datetime, parse_html_value, parse_a_href, parse_search_datetime, unescape_html
 
class ResultSet(list):
                setattr(result, k, parse_search_datetime(v))
            elif k == 'source':
                setattr(result, k, parse_html_value(unescape_html(v)))
            else:
                setattr(result, k, v)

src/s/i/sinaapp-HEAD/weibo/sina/models.py   sinaapp(Download)
#coding=utf-8
# Copyright 2009-2010 Joshua Roesslein
# See LICENSE for details.
 
from utils import parse_datetime, parse_html_value, parse_a_href, \
                setattr(result, k, parse_search_datetime(v))
            elif k == 'source':
                setattr(result, k, parse_html_value(unescape_html(v)))
            else:
                setattr(result, k, v)

src/j/s/jsonbot-HEAD/jsb/contrib/tweepy/models.py   jsonbot(Download)
 
from error import TweepError
from utils import parse_datetime, parse_html_value, parse_a_href, parse_search_datetime, unescape_html
 
class ResultSet(list):
                setattr(result, k, parse_search_datetime(v))
            elif k == 'source':
                setattr(result, k, parse_html_value(unescape_html(v)))
            else:
                setattr(result, k, v)

src/s/i/sinaapp-HEAD/weibo/qq/models.py   sinaapp(Download)
# Time-stamp: <2011-06-07 12:05:46 andelf>
 
from utils import (parse_datetime, parse_html_value, parse_a_href,
                           parse_search_datetime, unescape_html)
from error import assertion, QWeiboError