How can I allow HTML in Gutenberg UI elements help text?

Question

I like to know how can I add clickable links to help text?

el(
    ToggleControl,
    {
        label: 'Toogle',
        help: '<a href="https://.." >This will be escaped, I do not want that</a>',
        checked: props.attributes.toggle,
        onChange: ( value ) => {
            props.setAttributes( { toggle: value } );
        },
    }
)

Basically every GB UI element has help but its escaping all HTML, how can I stop it from escaping it?

0
, NextGenThemes 4 years 2019-11-06T03:56:55-05:00 0 Answers 64 views 0

Leave an answer

Browse
Browse