html.sh - gophercgis - Collection of gopher CGI/DCGI for geomyidae
 (HTM) hg clone https://bitbucket.org/iamleot/gophercgis
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
       html.sh
       ---
            1 #!/bin/sh
            2 
            3 
            4 #
            5 # Render HTML as text
            6 #
            7 html_to_text()
            8 {
            9         # Nonexistent proxy to block HTTP requests
           10         export http_proxy="http://localhost:31283128"
           11 
           12         browser="w3m"
           13 
           14         browser_options="-dump -T text/html -no-cookie -cols 72"
           15         browser_options="${browser_options} -o display_link=false"
           16         browser_options="${browser_options} -o display_link_number=false"
           17         browser_options="${browser_options} -o display_image=false"
           18 
           19         env LANG=en_US.UTF-8 ${browser} ${browser_options}
           20 }