Make WordPress Core

Opened 22 years ago

Closed 22 years ago

#527 closed defect (bug) (invalid)

<title> element in post is not parsed correctly

Reported by: anonymousbugger Owned by: matt
Priority: normal Milestone:
Component: General Version: 1.2
Severity: minor Keywords:
Cc: Focuses:

Description

If you put '<title>' somewhere in your post, Wordpress will not escape the '<' and '>' and a HTML title element is inserted in the post. This results in a post that stops where the title element is inserted (at least in Firefox).

The correct behaviour would be that '<' and '>' would be parsed into '&gt;' etc.

Change History (3)

#1 @anonymousbugger
22 years ago

  • Patch → No

#2 @2fargon
22 years ago

  • Status new → assigned

Why would you want to put a title element in the post? If it is for the purpose of displaying code, wouldn't you rather put it within <code></code> tags?

Please review and close the bug if you find this to be an appropriate response.

#3 @matt
22 years ago

  • Owner changed from anonymous to matt
  • Resolution 10 → 70
  • Status assigned → closed

Encode your HTML

Note: See TracTickets for help on using tickets.