It seems to me that any interception of this could provide instant trouble because anyone could just send any HTML/script back to the client.
The only reason I'm interested in doing this is because of the huge pain it is for front-end developers every time there's a DOM structure/CSS change so you now have to go figure out where in the Javascript HTML building process you may have to update.
How do you guys deal with this? Are there things I can do to reduce any risk or is ut just straight up bad idea?