[wp-trac] [WordPress Trac] #4608: HTML and Javascript Formatting
WordPress Trac
noreply at wordpress.org
Wed Oct 22 17:53:20 UTC 2025
#4608: HTML and Javascript Formatting
----------------------------+----------------------
Reporter: nawingee | Owner: (none)
Type: enhancement | Status: closed
Priority: high | Milestone:
Component: Administration | Version:
Severity: major | Resolution: wontfix
Keywords: | Focuses:
----------------------------+----------------------
Comment (by ax3yui8stk):
Its pretty much old ticket, but just want to add a few lines here:
WordPress removes <script> and certain HTML tags for security reasons.
This filtering happens through KSES, which sanitizes post content to
prevent malicious code from running. That’s why even in the Code editor,
JavaScript is stripped automatically.
The Text Control plugin can’t fully bypass this because the KSES filter
runs before content is saved to the database. The “Markdown” option also
won’t help here and the error you saw likely comes from outdated PHP code
in that old plugin.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/4608#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list