Suppose that you have an existing large document with lots of tikzpictures in it. Is it possible to put some code in the preamble that effectively turn off all text and math within these figures?
(Edit: It would be even better if just math mode content could be turned off, but I assumed that was too much to hope for.)
For background, I'm thinking about processing tikzpictures in a way to separate the graphic part from the text/math part, for eventual use in a web page. I'd process the graphic part of each image into a standalone pdf, and use pdf2svg to create an svg. Then I'd overlay the svg with the text/math using MathJax (to the degree that is possible, since not everything is going to work in MathJax.)

\tikzset{every node/.append style={text opacity=0}}might get you close, though it doesn't really turn off the text, only makes it transparent. – Torbjørn T. Aug 08 '15 at 21:01\hideable{...}. Then you could put\let\hideable\phantomat the top of your document when you want to hide this material and\let\hideable\textthe rest of the time (or something similar if you are not using amsmath). – Aug 09 '15 at 00:58