I am looking for a replace function or regEX that completely remove malicious code. For example:

Code:
<script>alert('Hi there!');</alert>
I would like to submit this to the database with a blank. I am able to remove the script tag with replace but I would like to remove the entire code.

Any help would be appreciated.

Thank you