Skip to:
Content

BuddyPress.org

Changeset 2392


Ignore:
Timestamp:
01/21/2010 12:24:21 PM (15 years ago)
Author:
apeatling
Message:

Fixing UTF-8 char issue with PHP4 and html_entity_decode(). Fixes #1649

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-activity/bp-activity-templatetags.php

    r2383 r2392  
    761761
    762762        $content = explode( '<span', $content );
    763         $title = trim( strip_tags( html_entity_decode( $content[0] ) ) );
     763        $title = trim( strip_tags( html_entity_decode( utf8_encode( $content[0] ) ) ) );
    764764
    765765        if ( ':' == substr( $title, -1 ) )
     
    803803            $content = $activities_template->activity->action . $activities_template->activity->content;
    804804
    805         return apply_filters( 'bp_get_activity_feed_item_description', html_entity_decode( str_replace( '%s', '', $content ), ENT_COMPAT, 'UTF-8' ) );
     805        return apply_filters( 'bp_get_activity_feed_item_description', html_entity_decode( utf8_encode( str_replace( '%s', '', $content ) ) ) );
    806806    }
    807807
Note: See TracChangeset for help on using the changeset viewer.