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

WordPress Trac wp-trac at lists.automattic.com
Tue Sep 20 23:44:24 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 duck_):

 Replying to [comment:1 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().

 wp_stip_all_tags()?

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


More information about the wp-trac mailing list