This question already has an answer here:
- remove script tag from HTML content 11 answers
- Remove all html tags from php string 7 answers
I have a string like this:
$mystring = "some words1 some more words2 <script>some variable inside</script> some more words3";
I want to remove script tags and inside it. I want to have "some words1 some more words2 some more words3" How can I remove that part
</div>