It would need a TeX program with who knows how many packages and auxiliary programs (like bibTeX). Then TeX files have usually a complex mixture of semantic and presentation markup, not to mention actual programming and macro code.
Try to find a good TeX to HTML converter, you'll see how difficult it is to extract anything meaningful and reliable out of arbitrary TeX code, by means other than TeX itself.
|