[wp-trac] [WordPress Trac] #12084: allow preserving HTML in the_excerpt (make strip_tags optional in wp_trim_excerpt)
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 29 22:36:41 UTC 2010
#12084: allow preserving HTML in the_excerpt (make strip_tags optional in
wp_trim_excerpt)
-------------------------+--------------------------------------------------
Reporter: sillybean | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Unassigned
Component: Formatting | Version: 3.0
Severity: minor | Keywords: has-patch, needs-testing
-------------------------+--------------------------------------------------
Right now, `wp_trim_excerpt` is destructive. You can filter it, but once
tags are stripped, you can't get them back without recreating the excerpt
from the raw input. It would be nice if theme developers had an option to
preserve at least some of the HTML formatting when using excerpts as post
teasers (see #9260).
--
Ticket URL: <http://core.trac.wordpress.org/ticket/12084>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list