removing malicious script tags before database insert

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ASPHELPME
    New Member
    • Dec 2022
    • 2

    removing malicious script tags before database insert

    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
Working...