[wp-trac] [WordPress Trac] #49337: Post title changed after publication if a <tag> is found by adding </tag>

WordPress Trac noreply at wordpress.org
Sat Feb 1 10:35:38 UTC 2020


#49337: Post title changed after publication if a <tag> is found by adding </tag>
--------------------------+----------------------
 Reporter:  casiepa       |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:
 Severity:  normal        |  Resolution:  invalid
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by ocean90):

 * status:  new => closed
 * version:  5.3.2 =>
 * resolution:   => invalid
 * milestone:  Awaiting Review =>


Comment:

 Users with administrator or editor roles are allowed to use HTML in post
 titles. In your case `<banana>` is a HTML tag and will be rendered as such
 by the browser. Browser are also trying to fix invalid HTML and makes it
 `<banana>festi­­val</banana>`.

 If you want to have the tag rendered as a string (and used in the slug)
 you have to use HTML entities: `<banana>`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49337#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list