Ticket #2881 (closed defect (bug): wontfix)

Opened 6 years ago

Last modified 5 years ago

XHTML CDATA Buglet

Reported by: aernative cel<at>web-engineer.co.uk Owned by: anonymous
Priority: normal Milestone:
Component: Template Version:
Severity: normal Keywords:
Cc:

Description

wp-includes/template-functions-post.php file line 57 -

$content = str_replace(']]>', ']]&gt;', $content);

This line causes problem if any filters applied to content inject XHTML comments into your pages (for example script blocks...).

Symanticly this feature should not exisit in this context as it is itself a kind of filter, If desired, it should be re-implimented as a filter so the user can choose to disable the feature.

Change History

I agree with reporter in that this should actually be a filter. Whether it should default to be included in the startup chain of filters... that's another matter.

I concur! Now my blog is back to being 100% valid xhtml. he-he Thanks!

Using 1.5.3 beta 1 BTW...

  • Status changed from new to closed
  • Resolution set to wontfix

No traction in almost a year, so closing as wontfix.

Feel free to re-open it if you have additional information/suggestions/patches/...

Note: See TracTickets for help on using tickets.