Changeset 9523
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-template.php
r9517 r9523 659 659 $truncate = ''; 660 660 661 // Find all the tags and put them in a stack for later use 662 preg_match_all( '/(<\/?([\w+]+)[^>]*>)?([^<>]*)/', $text, $tags, PREG_SET_ORDER ); 661 // Find all the tags and HTML comments and put them in a stack for later use 662 preg_match_all( '/(<\/?([\w!].+?)[^>]*>)?([^<>]*)/', $text, $tags, PREG_SET_ORDER ); 663 663 664 foreach ( $tags as $tag ) { 664 665 665 // Process tags that need to be closed 666 666 if ( !preg_match( '/img|br|input|hr|area|base|basefont|col|frame|isindex|link|meta|param/s', $tag[2] ) ) {
Note: See TracChangeset
for help on using the changeset viewer.