---
title: "How to remove all script tag from string using jQuery?"  
description: "How to remove all script tag from string using jQuery?"  
author: "Sunroof Pvt. Ltd"  
published: 2023-01-18  
updated: 2023-01-18  
canonical: https://www.mindstick.com/forum/157333/how-to-remove-all-script-tag-from-string-using-jquery  
category: "jquery"  
tags: ["jquery", "javascript"]  
reading_time: 1 minute  

---

# How to remove all script tag from string using jQuery?

How to [remove](https://yourviews.mindstick.com/story/4554/8-harmful-weeds-to-remove-from-garden) all [script](https://www.mindstick.com/interview/477/how-can-i-execute-a-php-script-using-command-line) opening and closing [tags](https://www.mindstick.com/interview/33868/difference-between-html-elements-and-tags) without affecting their contained data.


---

Original Source: https://www.mindstick.com/forum/157333/how-to-remove-all-script-tag-from-string-using-jquery

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
