Use regular expressions to remove SCRIPT elements from HTML text.
This simple code will replace script tags and everthing contained between them with an empty string. The exception is when there is a string contained within the script tag that has the text
</script> somewhere in it. This will break it, but some careful programming can overcome this.
Replace links in text with HTML Anchors.