StackOverflow code to get html page with fiixed formatting