[wp-trac] [WordPress Trac] #15657: wp_strip_all_tags causes paragraphs to run together
WordPress Trac
wp-trac at lists.automattic.com
Tue Dec 27 20:49:31 UTC 2011
#15657: wp_strip_all_tags causes paragraphs to run together
-------------------------------------------------+-------------------------
Reporter: jwz | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future
Component: Formatting | Release
Severity: normal | Version: 2.9
Keywords: has-patch 3.2-early needs-unit- | Resolution:
tests |
-------------------------------------------------+-------------------------
Comment (by jwz):
Replying to [comment:7 azaozz]:
> 'wp_strip_all_tags()' is intended as fix/replacement for PHP's
`strip_tags()`. If we need to pre-process RSS feeds perhaps we should make
another function specifically for that.
`wp_strip_all_tags` isn't used solely for RSS and Atom feeds, it's used
indirectly by anything that wants `the_excerpt` and is also used by other
plugins, e.g., Simple Facebook Connect uses it when cross-posting to
Facebook (since their API only allows plain-text).
It seems to me that in any context where you're converting multi-line HTML
to plain-text, converting paragraphs to newlines is an eminently sensible
thing to do. I can't imagine why you'd want the original PHP `strip_tags`
behavior at all, frankly.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/15657#comment:8>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list