Version 1.0.3 has been released. Now on npmjs and github.
allowedAttributes:
This adds support for the allowedAttributes feature in sanitize-html. (e.g, you can allow href in only <a>
.) There wasn't a great way to add this into the Wappler UI, so I used the grid option.
To use this feature, you need to use the following format in the Wappler UI:
In the above example, the href attribute would only be possible to use on the <a>
tag, and class and style on the <h1>
tag. You can also use * to allow an attribute across all tags. You can find further docs on the sanitize-html page.
Removed cleanedHtml:
As noted in the post directly above this one, I left it in there by mistake. The correct usage is to select the action itself, which will provide the clean HTML.
Added name to action:
Self explanatory