Make WordPress Core

Opened 4 months ago

Last modified 4 months ago

#62049 new defect (bug)

Italics HTML tags in Post Titles are Being Converted to HTML Entities

Reported by: ccwp24's profile ccwp24 Owned by:
Milestone: Awaiting Review Priority: normal
Severity: major Version: 6.5.5
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

When editors wrap words like publication titles and book titles within Post titles with HTML:

<em> or <i>

The opening tag "<" gets converted to the entity: &lt;

The only way we have found to fix it is to go into the 'quick edit' menu and change it back to "<". This is causing issues on our site. It has only been occurring since 6.5.5. We tested it with other themes using 6.5.5 and have confirmed that it still happens. It does not happen with earlier WordPress core versions.

Attachments (2)

Screenshot 2024-09-13 at 3.20.18 PM.png (36.3 KB) - added by ccwp24 4 months ago.
What the post title looks like in Wordpress when you create a post called: My Book Title is <em>The Great Gatsby</em>
Screenshot 2024-09-13 at 3.20.51 PM.png (28.2 KB) - added by ccwp24 4 months ago.
Post title in the editor

Download all attachments as: .zip

Change History (7)

@ccwp24
4 months ago

What the post title looks like in Wordpress when you create a post called: My Book Title is <em>The Great Gatsby</em>

@ccwp24
4 months ago

Post title in the editor

#1 @deepakrohilla
4 months ago

@ccwp24 I'm not getting this issue with the latest WordPress release (6.6.2) and with Twenty Twenty-Four theme."<" symbol is not converting to "&lt;" with Quick Edit. The <em> tag is only displaying as plain text in the CMS and not rendering in italics, but it appears correctly on the frontend.
Please take a look screenshot
https://ibb.co/wWPBZVk
https://ibb.co/nzk4RnC
https://ibb.co/3Fj4zBk

#2 @siliconforks
4 months ago

I believe what @ccwp24 is saying is that the issue is with the regular editor (i.e., the block editor), not the "Quick Edit" functionality. (Quick Edit is the workaround.)

#3 @ccwp24
4 months ago

Yeah it's in the editor, not quick edit. When users create posts they are creating the title in editor screen. I was using quick edit as a work-around to see if that made any difference, but we don't want our users to have to do that extra step.

#4 @deepakrohilla
4 months ago

Sorry, but I'm not seeing this issue with the block editor. Here are some screenshots for reference:

https://ibb.co/8PR4YmG
https://ibb.co/m6yHJ6S

#5 @ccwp24
4 months ago

Interesting. I've disabled all plugins and tested on 6.6.2 with the twentytwentyfour theme and I still have this issue.

Please see the image below. You can see it's converting the opening angle bracket < in real time within the document panel as I type (on the right).

https://imgur.com/a/Is92Of2

Note: See TracTickets for help on using tickets.