WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

#7629 closed defect (bug) (invalid)

wordpress doesn't show text containing html meta tags

Reported by: donpaolo Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: General Keywords:
Focuses: Cc:

Description

If you enter the text 'meta http-equiv="Content-Type" content="text/html; charset=windows-1252"' (with angular brackets) in a post, it won't be shown: apparently is sent to the browser as is, and the browser interprets it as a html meta tag, so that the text doesn't appear in the post

Change History (4)

comment:1 @donpaolo7 years ago

Let me see whether tracker can treat this text:

<meta http-equiv="Content-Type" content="text/html; charset=windows-1252>

comment:2 @donpaolo7 years ago

Yes, tracker knows how to process a meta tag I put in a ticket.

Note that the problem with wordpress is both in posts and comments. I suppose there can be other sites in the software where the problem arises.

comment:3 @ryan7 years ago

If you use the visual editor, the text will be escaped and shown. If use the HTML editor they will not be escaped and will be interpreted as tags.

comment:4 @azaozz7 years ago

  • Milestone 2.7 deleted
  • Resolution set to invalid
  • Status changed from new to closed

Works fine here. When using the HTML editor you will have to escape this by hand.

Note: See TracTickets for help on using tickets.