I would like to open an HTML file in MS Word 2007 directly so I can use some of its search and replace features. I don't care about the file's encoding and will not actually use the final thing as HTML (I'm going to be extracting interesting parts). I want to see raw HTML. When I open the document, instead Word renders everything. I am hoping someone knows how to do this from within Word without having to resort to copying and pasting or modifying the file to change the html tags to no longer look like html (such as or something). I have been hit by this multiple times over the years and wish that I could fix the problem instead of always be forced to find a workaround. Is there some option or setting, or something in the Open dialog that can change Word's behavior?
You can turn off automatic file-type conversions in Word, and instead it will ask you what type of file you're trying to open, at which point you can pick Text.
To turn it off (or rather turn on Confirmation of conversion):
If you never want to open rendered HTML in Word again, you can also uninstall the HTML Filter by running Office Setup and de-selecting it form the installed options.
Alternatively and probably easiest: Use something else for the task, like a good Plain Text editor. I personally use and suggest Notepad++.