Opened 8 years ago
Closed 4 years ago
#32921 closed defect (bug) (duplicate)
WordPress mangles text inside <script> tags in posts even if text-control is set to disable any processing
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.2.2 |
Component: | Formatting | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
I want to be able to add one-off scripts to my Pages. I am already using Text Control to disable any text processing ('No formatting', 'No character formatting'). This works in that it preserves most of the markup, but it still will convert the ampersand character to an XML entity representation.
And, as you may know, the logical and operator in JS is &&
.
I take it that there isn't a way to tell WordPress to "just take this and treat it as correct, don't mangle anything, send it to the client, I know what I'm doing", because clearly I'm doing just that using Text Control?
Change History (3)
Note: See
TracTickets for help on using
tickets.
Hi there, welcome to Trac!
Thanks for creating a patch. Which WordPress version are you using?
It seems to me that this was fixed in [35709], see #34698.