title: TinyMCE remove <script> tags from entire HTML including <head>
body: <p>Is there a way to make tinyMCE delete all script tags, no matter where they are in the html document?</p>
  
  <p>Adding <code>invalid_elements : 'script',</code> to the tinyMCE correctly removes <code>&lt;script&gt;</code> tags from the <code>&lt;body&gt;</code> of the html document, but not the <code>&lt;head&gt;</code>. </p>
  
  <p>Context: This tinyMCE is creating an email, so no JS should be present.</p>
  
  <p>Code:</p>
  
  <pre><code>tinymce.init({
              menubar : false,
              branding: false,
              selector: "textarea#email_wysiwyg1",
              theme: "modern",
              width: '755',
              height: '500',
              convert_urls: false,
              plugins: [
                  "advlist autolink link image lists charmap preview hr anchor pagebreake fullpage"
              ],
              custom_elements: '~center',
              invalid_elements : 'script',
              extended_valid_elements: '',
              fontsize_formats: "10px 12px 14px 16px 18px 24px 30px 36px",
              toolbar: "code | bold italic underline hr forecolor backcolor | link unlink | undo redo | 
              bullist numlist | outdent indent | alignleft aligncenter | alignright alignjustify | image preview |"
  
  });
  </code></pre>
  
  <p>Thanks in advance.</p>