[wp-trac] [WordPress Trac] #18726: Automatic excerpt shows javascript source

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 20 23:39:27 UTC 2011


#18726: Automatic excerpt shows javascript source
--------------------------+------------------------------
 Reporter:  evansolomon   |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------

Comment (by nacin):

 Confirmed that strip_tags() won't remove <script> content.

 We could strip out script and style tags via preg_replace in the new
 wp_trim_words() function ([18732]) before running strip_tags().

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


More information about the wp-trac mailing list