• Resolved jamiehan

    (@jamiehan)


    Hi.

    Up until the most recent update, I included a <br/> in my title shortcode to display the title over two lines.

    [tabby title="Week 1 <br/> Mon 7 Feb"]

    However, since the update, the output no longer includes the line break. It just outputs

    <li class="responsive-tabs__list__item responsive-tabs__list__item--active" id="tablist1-tab1" aria-controls="tablist1-panel1" role="tab" tabindex="0">Week 1 Mon 7 Feb</li>

    Do you know if there’s a reason for this?

    Thanks
    Jamie

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author cubecolour

    (@numeeja)

    The tab title is being sanitized with sanitize_text_field() in version 1.3.3 of the plugin.

    I will change this to wp_kses() to allow line breaks and some other html to be used in the tab titles as I am sure there are several use-cases where this might be useful.

    This change will be in the next update, version 1.3.4

    Plugin Author cubecolour

    (@numeeja)

    v1.3.4 is now live with this change

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HTML tags stripped from title output’ is closed to new replies.