[buddypress-trac] [BuddyPress Trac] #6517: bp_create_excerpt returning mall-formed markup - mb_strlen issues?
buddypress-trac
noreply at wordpress.org
Sat Jun 20 20:50:06 UTC 2015
#6517: bp_create_excerpt returning mall-formed markup - mb_strlen issues?
------------------------------+------------------------------
Reporter: hnla | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Component - Core | Version:
Severity: normal | Resolution:
Keywords: |
------------------------------+------------------------------
Comment (by hnla):
If in fact I change the html arg to false i.e ''do calculate html tags in
excerpt length'' then we avoid the issue by avoiding the need to
strip_tags via the mb_strlen function and return a correct excerpt.
On a side note it's evident this script is from the dark ages of the
internet as highlighted by this line:
`!preg_match(
'/img|br|input|hr|area|base|basefont|col|frame|isindex|link|meta|param/s`
HTML 3.0 :s
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6517#comment:5>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac
More information about the buddypress-trac
mailing list