[wp-trac] [WordPress Trac] #10376: White space should be collapsed after tags are stripped in wp_trim_excerpt

WordPress Trac wp-trac at lists.automattic.com
Mon Jul 13 15:04:32 UTC 2009


#10376: White space should be collapsed after tags are stripped in wp_trim_excerpt
-------------------------+--------------------------------------------------
 Reporter:  sojweb       |       Owner:                                         
     Type:  enhancement  |      Status:  new                                    
 Priority:  normal       |   Milestone:  2.8.2                                  
Component:  Formatting   |     Version:  2.8.1                                  
 Severity:  normal       |    Keywords:  has-patch, the_excerpt, wp_trim_excerpt
-------------------------+--------------------------------------------------

Comment(by sojweb):

 Probably shouldn't count on wpautotop() running, as a lot of people
 (myself included) have it disabled, but preg_split would be just as good,
 just don't forget to strip tags from $text; otherwise you will probably
 end up with broken HTML. I've attached a diff file that uses it.

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


More information about the wp-trac mailing list