[wp-trac] [WordPress Trac] #15657: wp_strip_all_tags causes paragraphs to run together
WordPress Trac
wp-trac at lists.automattic.com
Fri Dec 3 06:05:40 UTC 2010
#15657: wp_strip_all_tags causes paragraphs to run together
--------------------------+-------------------------------------------------
Reporter: jwz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Formatting | Version: 3.0.2
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
If a post contains HTML like "foo<p>bar", the RSS feed ends up with the
text "foobar" instead of the more appropriate "foo bar" or even
"foo\n\nbar".
Here is a simple patch to wp-includes/formatting.php that fixes this:
basically, convert <p>, <br> and certain similar tags to newlines before
calling the PHP-builtin strip_tags() function.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15657>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list