[wp-trac] [WordPress Trac] #12084: allow preserving HTML in the_excerpt (specify allowed tags for strip_tags in wp_trim_excerpt)

WordPress Trac wp-trac at lists.automattic.com
Sat Jan 30 03:51:48 UTC 2010


#12084: allow preserving HTML in the_excerpt (specify allowed tags for strip_tags
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
-------------------------+--------------------------------------------------

Comment(by sillybean):

 Second patch balances the tags after the excerpt has been truncated, which
 makes more sense. However, it can result in weirdness with the word count.
 Not sure how to get around that without some really painful regex.

 This patch also preserves shortcodes in excerpts, which seems logical if
 we're allowing HTML.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/12084#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list