How to allow html tags
-
Hi Support,
I want to allow html tags as I’ve enabled the rich text editor in messages using the bellow code. I want to allow <span> with style attribute.
function bpfr_compose_msg_tiny_editor() { $content = ""; if ( isset( $_GET['r'] ) ) : $content = esc_textarea( $_GET['r'] ); endif; $editor_settings = array( 'content' => bp_messages_content_value(), 'textarea_name' => 'content', 'editor_id' => 'message_content', 'teeny' => false, 'tinymce' => true, 'media_buttons'=>false ); wp_editor( bp_messages_content_value(), "message_content", $editor_settings); } add_action( 'compose_edit_tools', 'bpfr_compose_msg_tiny_editor' );
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to allow html tags’ is closed to new replies.