'checks whether the text has text not already enclosed by a block tag
>>> t = Textile()
>>> t.hasRawText(\'<p>foo bar biz baz</p>\')
False
>>> t.hasRawText(\' why yes, yes it does\')
True'

def hasRawText(self, text):

    r = re.compile('<(p|blockquote|div|form|table|ul|ol|pre|h\\d)[^>]*?>.*</\\1>', re.S).sub('', text.strip()).strip()
    r = re.compile('<(hr|br)[^>]*?/>').sub('', r)
    return ('' != r)
