Save html as text

view full story

http://askubuntu.com – I have a javascript code witch just show the source code of a html page javascript:h=document.getElementsByTagName('html')[0].innerHTML;function%20disp(h){h=h.replace(/</g,%20'\n&lt;');h=h.replace(/>/g,'&gt;');document.getElementsByTagName('body')[0].innerHTML='<pre>&lt;html&gt;'+h.replace(/(\n|\r)+/g,'\n')+'&lt;/html&gt;</pre>';}void(disp(h)); i save the code as bookmark in firefox. So after load an web page when i select the code from bookmark it shows the source code. Now i try to save the html file using python. from BeautifulSoup import Beaut (HowTos)