parameters: (s)
return_statement: return parser.result
docstring: Convert a snippet of HTML to Textile, a simple markup language. See
      http://www.textism.com/tools/textile/ for Textile's rules.
      
      >>> html2textile("<h1>Hello world!</h1>")
      'h1. Hello world!'
  
      >>> html2textile("<h1>Hello <strong>world</strong>!</h1>")
      'h1. Hello *world*!'
  
      >>> html2textile('<h1>Hello <a href="http://www.google.com/">world</a>!</h1>')
      'h1. Hello "world":http://www.google.com/!'
  
      >>> html2textile('<img src="http://www.google.com/intl/en/images/logo.gif" \
      ...     width="276" height="110" alt="Google logo">')
      '!http://www.google.com/intl/en/images/logo.gif!'
      
      >>> html2textile('<h1>Hello world!</h1><p>Welcome to my home page.</p>')
      'h1. Hello world!\\n\\np. Welcome to my home page.'
docstring_summary: Convert a snippet of HTML to Textile, a simple markup language. See
      http://www.textism.com/tools/textile/ for Textile's rules.
      
      >>> html2textile("<h1>Hello world!</h1>")
      'h1. Hello world!'
docstring_tokens: Convert a snippet of HTML to Textile a simple markup language . See http : // www . textism . com / tools / textile / for Textile s rules . >>> html2textile ( <h1 > Hello world!< / h1 > ) h1 . Hello world!
function: def html2textile(s):
      """Convert a snippet of HTML to Textile, a simple markup language. See
      http://www.textism.com/tools/textile/ for Textile's rules.
      
      >>> html2textile("<h1>Hello world!</h1>")
      'h1. Hello world!'
  
      >>> html2textile("<h1>Hello <strong>world</strong>!</h1>")
      'h1. Hello *world*!'
  
      >>> html2textile('<h1>Hello <a href="http://www.google.com/">world</a>!</h1>')
      'h1. Hello "world":http://www.google.com/!'
  
      >>> html2textile('<img src="http://www.google.com/intl/en/images/logo.gif" \
      ...     width="276" height="110" alt="Google logo">')
      '!http://www.google.com/intl/en/images/logo.gif!'
      
      >>> html2textile('<h1>Hello world!</h1><p>Welcome to my home page.</p>')
      'h1. Hello world!\\n\\np. Welcome to my home page.'
      """
      parser = HtmlToTextileConvertingParser()
      parser.feed(s)
      parser.close()
      return parser.result
function_tokens: def html2textile ( s ) : parser = HtmlToTextileConvertingParser ( ) parser . feed ( s ) parser . close ( ) return parser . result