Text area field rendered with Elementor, shows HTML instead of rendering it

Support MB Elementor Integrator Text area field rendered with Elementor, shows HTML instead of rendering itResolved

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #47563
    Hello DollyHello Dolly
    Participant

    I created a group of fields and one of the subfields is a textare.

    Inside it, I'd like to add a simple ol list.

    So, I write the content this way:

    
    This is the text I write.
    
    Then, I add a simple list:
    
    <ol>
    <li>First item</li>
    <li>Second item</li>
    <li>Third item</li>
    </ol>
    
    Here other text to display with Elementor.
    

    Unfortunately, the content is shown in the frontend like this:

    > This is the text I write. Then, I add a simple list: <ol> <li>First item</li> <li>Second item</li> <li>Third item</li> </ol> Here other text to display with Elementor.

    I tried to disable the sanitization setting none, but this didn't worked.

    #47564
    Hello DollyHello Dolly
    Participant

    Sorry, but the forum, in the end, rendered the HTML I wrote.

    Elementor, in the frontend, shows the content this way:

    
    This is the text I write. Then, I add a simple list: <ol> <li>First item</li> <li>Second item</li> <li>Third item</li> </ol> Here other text to display with Elementor.
    
    #47578
    PeterPeter
    Moderator

    Hello Adamo,

    What is the Elementor widget that you use to output the field value? I use the Text Editor widget to output the textarea field value and it shows the order-list in the frontend properly.
    Please check these screenshots https://imgur.com/a/RJtZu11

    #47583
    Hello DollyHello Dolly
    Participant

    Hello Peter,

    Thanks for your reply.

    I'm using textarea field, too, and, in Elementor, the Text Editor widget.

    https://imgur.com/a/I9jbrCz

    I checked the database: the value is saved with the correct HTML.

    Maybe there is some setting to use somewhere?

    #47590
    Hello DollyHello Dolly
    Participant

    I further debugged the issue.

    It seems that, in the plugin mb-elementor-integrator, the method GroupField::get_value_dynamic_tag(), uses esc_html(): this causes the transformation of the HTML tags into HTML entities and this causes the rendering of HTML on the page instead of processing it as HTML tags.

    https://imgur.com/a/YSQUcLj

    #47591
    Hello DollyHello Dolly
    Participant

    Ok, the lateste release (2.2.3) fixed the issue 💪

    Thank you!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.