wp_strip_all_tags causes paragraphs to run together
|Reported by:||jwz||Owned by:|
|Severity:||normal||Keywords:||has-patch 3.2-early needs-unit-tests|
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.
Change History (10)
- Keywords has-patch 3.2-early added
- Milestone changed from Awaiting Review to Future Release
- Keywords needs-unit-tests added
- Version changed from 3.3 to 3.0.2