• Resolved HodaPress

    (@hodaka888)


    Hi , I’ve been using Branda plugin for a long time. Today I tried editting the text in the message and saved. Then it turned out that HTML tag can not be used now.

    It used to be available but now I can use only text here https://share.zight.com/p9uYL9WW

    Please tell me why and how to fix this.

    Thank you

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @hodaka888,

    I’m afraid, what you notice is the expected behaviour with the latest version of Branda.

    However, I’m checking with our developer to see if there is any workaround that could be suggested in such instances or not.

    Will keep you posted once we get further feedback asap.

    Best Regards,

    Nithin

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @hodaka888,

    Please try the following code snippet and see whether it helps:

    <?php
    
    add_filter(
    	'ub_get_value',
    	function( $data, $module, $section, $name ) {
    	if ( $module != 'login-screen' && $section != 'content' && $name != 'message' ) {
    		return $data;
    	}
    
    
    	add_filter(
    		'sanitize_text_field',
    		function( $filtered, $str ) {
    			$filtered = wp_kses_post($str);
    			return $filtered;
    		},
    		10,
    		2
    	);
    
    	return $data;
    }, 10, 4 );

    You can add the above code as a mu-plugins. Please check this link on how to implement the above code as a mu-plugins:
    https://wpmudev.com/docs/using-wordpress/installing-wordpress-plugins/#installing-mu-plugins

    Once the above code is added, any new HTML tags added to the “Message” content would get saved as HTML.

    Please do check and see how that goes.

    Best Regards,

    Nithin

    Plugin Support Nithin – WPMU DEV Support

    (@wpmudevsupport11)

    Hi @hodaka888,

    Since we haven’t heard from you for a while. I’ll mark this thread as resolved for now. Please feel free to re-open the thread if you need further assistance.

    Regards
    Nithin

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘HTML tag in the message field is not available now’ is closed to new replies.