Title: Remove CDATA  from the script
Last modified: August 31, 2016

---

# Remove CDATA from the script

 *  [ashutosh242](https://wordpress.org/support/users/ashutosh242/)
 * (@ashutosh242)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/remove-from-the-script/)
 * Whenever you save in coursepress, it is saved in visual mode because of which
   <script> gets enclosed in <![CDATA[ ]]>. I am using SAGE Math script, and all
   scripts are getting enclosed in <![CDATA[ ]]>, you have to manually remove and
   run scripts which is not viable for learning.
 * Some People says remove <script> tag, but in SAGE MATHS Indentation is important
   for the script to function correctly and I also tried all methods to provided
   Indentation manually but it doesn’t recognize all those.
 * Please refer this page
    [http://riyaaz.org/courses/courses/cryptography/units/chapter-6/?try](http://riyaaz.org/courses/courses/cryptography/units/chapter-6/?try)
 * [https://wordpress.org/plugins/coursepress/](https://wordpress.org/plugins/coursepress/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * (@wpmudev-support4)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/remove-from-the-script/#post-7207949)
 * Hey there ashutosh242,
 * How are you doing today?
 * Removing JS in posts is a security feature of WP so it’s not actually related
   to CoursePress.
 * I’ve tested this on my sandbox site and I can recreate this when trying to post
   scripts as a non admin user. With admin user everything is posted properly without
   code being wrapped with CDATA.
 * I’ve forwarded this to our developers since instructors do not have the proper
   capabilities (unfiltered_html) in order to post this without code being wrapped
   like that. We’ll add capabilities for instructors as well in the following plugin
   update.
 * Thank you for reporting this 🙂
 * Best regards,
    Bojan

Viewing 1 replies (of 1 total)

The topic ‘Remove CDATA from the script’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/coursepress_f7e9b6.svg)
 * [CoursePress Learning Management System](https://wordpress.org/plugins/coursepress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/coursepress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/coursepress/)
 * [Active Topics](https://wordpress.org/support/plugin/coursepress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/coursepress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/coursepress/reviews/)

## Tags

 * [javascript](https://wordpress.org/support/topic-tag/javascript/)

 * 1 reply
 * 2 participants
 * Last reply from: [Bojan Radonic – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support4/)
 * Last activity: [10 years, 1 month ago](https://wordpress.org/support/topic/remove-from-the-script/#post-7207949)
 * Status: not resolved