• Resolved Fede84

    (@fede84)


    Hi, i’ve got an issue with te last version of wpforms, when i try to add html tag insisde a choice of multiple choice (like a link) the HTML tags disappeare.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello Fede.

    Indeed in the last version of WPForms we limited list of allowed tags in choices labels to br, strong, b, em and i only.

    However, you can still extend this list with filter wpforms_field_label_allowed_html_tags which takes that list in form of array expectsto have a new array returned. For example, if you want to add a link (<a>) to the list, please use the filter as follows:

    
    add_filter( 'wpforms_field_label_allowed_html_tags', function( $tags ) {
    	$tags[] = 'a';
    	return $tags;
    } );

    you can find this filter in use in wpforms/includes/fields/class-base.php file, line 2948

    Thread Starter Fede84

    (@fede84)

    Thanks a lot, it works!

    Plugin Support Ralden Souza

    (@rsouzaam)

    Hi @fede84,

    Great to hear that the custom code worked for you, and thanks for letting us know.

    With this, I’m going to go ahead and close this thread for now. But if you’d like us to assist further, please feel welcome to continue the conversation.

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Problem with HTML Tag and Multiple Choice’ is closed to new replies.