Hello @sonnh !
Thanks for your feedback! This is not possible because <i> is not supported. This is also stated in the changelogs:
https://github.com/pixelbart/helpful/releases/tag/4.4.59
For security reasons I can’t change that either, you have to decide that for yourself if you want Helpful to be insecure. Unfortunately I can’t allow all HTML tags and had to settle on a few.
Greetings Kevin
Thread Starter
sonnh
(@sonnh)
After add add_filter(‘helpful/get_option/handle_security’, ‘__return_false’);
i still cant add Font Awesome to button
Can you show me how to add Font Awesome to button
@sonnh
There is one more filter you can use:
https://helpful-plugin.info/docs/filters/helpful-kses-allowed_tags/
In your example, the following should suffice:
add_filter('helpful/kses/allowed_tags', function( $tags ) {
$tags['i'] = [
'class' => '',
];
return $tags;
});
Alternatively, you can use <div> instead of <i>. This should also work:
<div class="fas fa-heart"></div>
Thread Starter
sonnh
(@sonnh)
thanks it works but your button Pro input is broken with html value
<div class="fas fa-heart"></div>
@sonnh
You are absolutely right! I just drove an update. That should fix it. Also, you can now use <i>
and <i class="">
.
-
This reply was modified 2 years, 6 months ago by Pixelbart.