Skip to:
Content
Pages
Categories
Search
Top
Bottom

BP Message not parsing HTML entities correctly


  • uranoz
    Participant

    @uranoz

    The BuddyPress messages summary page is displaying all HTML entities as literal strings.

    For example, BP truncates the message on the summary page and appends an ellipsis. However, this entity displays as &#hellip; instead of the correct three horizontal dots (…).

    We have not been able to fix this problem.

    Has anybody had any experience with correctly this issue?

    Any help will be greatly appreciated. Many thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)

  • uranoz
    Participant

    @uranoz

    Further details:

    The problem is the same for n dashes, m dashes, and any other type of HTML entities. The issue is only occurring in the messages on the Messages summary page.

    The snippet in the BP function that truncates the message and appends the list with the ellipsis is as follows:

    function bp_create_excerpt( $text, $length = 225, $options = array() ) {
    
    	// Backward compatibility. The third argument used to be a boolean $filter_shortcodes.
    	$filter_shortcodes_default = is_bool( $options ) ? $options : true;
    
    	$r = bp_parse_args(
    		$options,
    		array(
    			'ending'            => __(  ' [U+02026] '  , 'buddypress' ),
    			'exact'             => false,
    			'html'              => true,
    			'filter_shortcodes' => $filter_shortcodes_default,
    			'strip_tags'        => false,
    			'remove_links'      => false,
    		),
    		'create_excerpt'
    	);

    clements69
    Participant

    @clements69

    Updated the activation page query string to use the “gfur_activation” parameter instead of “page” to fix an issue with WordPress 5.5 where a 404 not found error occurs. Existing activation links will automatically redirect to the new page. KDealer Login

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar