I have an email that gets sent which outputs the text of HTTP error responses. If the response ever includes Javascript code in <script>
tags (and some HTML code) then the Gmail (and many other email clients) strip out the code.
Also, if there is anything after the </script>
that seems to get stripped out as well.
How can I make it so that the Javascript code is not stripped out and just gets included as plain text in the body of an HTML email?