Title: Stop TinyMCE from Stripping HTML &amp; CSS code in Text mode
Last modified: January 10, 2021

---

# Stop TinyMCE from Stripping HTML & CSS code in Text mode

 *  [drusso1](https://wordpress.org/support/users/drusso1/)
 * (@drusso1)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/stop-tinymce-from-stripping-html-css-code-in-text-mode/)
 * How can I stop TinyMCE from Stripping HTML & CSS code in Text mode? We are using
   the classic WordPress editor for now.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * (@azaozz)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/stop-tinymce-from-stripping-html-css-code-in-text-mode/#post-13890628)
 * When you’re using the Text tab in the classic editor, TinyMCE doesn’t have access
   to it at all. The content you type in the textarea is saved as-is.
 * If you switch from Text to Visual, TinyMCE parses and sanitizes the HTML from
   the textarea. That usually would remove inline js (the `onclick`, `onerror`, 
   etc.), and may sanitize some of the HTML attributes, but generally will keep 
   inline CSS. This is a security feature.

Viewing 1 replies (of 1 total)

The topic ‘Stop TinyMCE from Stripping HTML & CSS code in Text mode’ is closed to
new replies.

 * ![](https://ps.w.org/tinymce-advanced/assets/icon-256x256.png?rev=971511)
 * [Advanced Editor Tools](https://wordpress.org/plugins/tinymce-advanced/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/tinymce-advanced/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/tinymce-advanced/)
 * [Active Topics](https://wordpress.org/support/plugin/tinymce-advanced/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/tinymce-advanced/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/tinymce-advanced/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Andrew Ozz](https://wordpress.org/support/users/azaozz/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/stop-tinymce-from-stripping-html-css-code-in-text-mode/#post-13890628)
 * Status: not resolved