We solved this by adding a new method to the string object to replace any <script> tags in a string to defuse it.
This solution removes any potential script tags and will prevent any html tags from being encoded (useful when you're trying to render out html from a string.