(page)
return filter(None, (_.group('result').strip() for _ in re.finditer(TEXT_TAG_REGEX, page)))
Returns list containing content from "textual" tags

    >>> extractTextTagContent(u'<html><head><title>Title</title></head><body><pre>foobar</pre><a href="#link">Link</a></body></html>')
    [u'Title', u'foobar']
Returns list containing content from "textual" tags
Returns list containing content from textual tags
def extractTextTagContent(page):
    """
    Returns list containing content from "textual" tags

    >>> extractTextTagContent(u'<html><head><title>Title</title></head><body><pre>foobar</pre><a href="#link">Link</a></body></html>')
    [u'Title', u'foobar']
    """

    page = page or ""

    if REFLECTED_VALUE_MARKER in page:
        try:
            page = re.sub(r"(?i)[^\s>]*%s[^\s<]*" % REFLECTED_VALUE_MARKER, "", page)
        except MemoryError:
            page = page.replace(REFLECTED_VALUE_MARKER, "")

    return filter(None, (_.group('result').strip() for _ in re.finditer(TEXT_TAG_REGEX, page)))
def extractTextTagContent ( page ) : page = page or "" if REFLECTED_VALUE_MARKER in page : try : page = re . sub ( r"(?i)[^\s>]*%s[^\s<]*" % REFLECTED_VALUE_MARKER , "" , page ) except MemoryError : page = page . replace ( REFLECTED_VALUE_MARKER , "" ) return filter ( None , ( _ . group ( 'result' ) . strip ( ) for _ in re . finditer ( TEXT_TAG_REGEX , page ) ) )