Support » Plugin: Block Lab » html in text

  • Resolved gottfrieds


    As there is no html field for small customizations I use sometimes the textarea. It works fine with most tags. Even <buttons> are displayed correctly. But the onclick event is lost during the php generation.

    <button style="margin: 7px; padding: 7px;" onclick="sw_button('wahlprogramm2020/')">Programm Simmerath</button>


    <button style="margin: 7px; padding: 7px;">Programm Simmerath</button>

    Is there a solution. A html field would be very helpful.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ryan Kienstra


    Hi @gottfrieds,
    Thanks for bringing that up.

    The Textarea field shouldn’t have any escaping when using block_value().

    For example:

    echo block_value( 'example-textarea-field' );

    Does that help, or is it already using block_value() ?

    Thread Starter gottfrieds


    Great! It works!

    Plugin Author Ryan Kienstra


    Great, glad it works!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘html in text’ is closed to new replies.