How to remove the mapped script in a particular diva?

How to remove tag "Script" inside diva

<div id="sc">
the <script>
 var str = "Some text";
</script>
br><code>var doc = document.getElementById('sc');</code></div>
July 12th 19 at 17:22
2 answers
July 12th 19 at 17:24
the scripts in the divas don't stick

for anyways?
July 12th 19 at 17:26
1. to remove
2. cut and paste to another location
3. comment

Find more questions by tags JavaScript