0

Buddypress messages - specifically the preview page - does not interpret HTML entities correctly. Instead, they display as literal strings.

Does anybody know how to get Buddypress to recognize and interpret HTML entities correctly?

Thank you in advance.

1 Answer 1

0

This should help: bp_get_message_content() retrieves the message content.

<?php
// Retrieve the message content
$message_content = bp_get_message_content();

// Decode HTML entities
$message_content = html_entity_decode( $message_content );

// Output the message content
echo $message_content;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.