[buddypress-trac] [BuddyPress] #3452: Long Inserted Image in Post doesn't Render in Activity Stream
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Mon Aug 8 19:41:07 UTC 2011
#3452: Long Inserted Image in Post doesn't Render in Activity Stream
-------------------------+------------------
Reporter: nahummadrid | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 1.5
Component: Activity | Version: 1.5
Severity: normal | Resolution:
Keywords: |
-------------------------+------------------
Changes (by boonebgorges):
* component: Core => Activity
* milestone: Awaiting Review => 1.5
Comment:
I noticed this in one of my plugins as well. We should be able to fix it
by doing some selective HTML removal before creating the excerpt.
There should be two steps:
- make sure that we don't excerpt in the middle of a tag (will
force_balance_tags() do this?)
- exclude the content of tags from the character count when excerpting
(maybe we can remove tags from the content before excerpting, store them
in a stack while creating the excerpt, and then put them back?.
Alternatively, we could count up the number of characters in the HTML tags
of an excerpt, and then re-excerpt with normal_excerpt_length +
characters_in_html_tags as the length)
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/3452#comment:1>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list