Hello there,
First of all, thank you for this nifty little tool. It's really easy to use :)
I'd like to know if it's possible to specify a list of allowed attributes as a glob (or using the wildcard *).
One use-case would be to let users enter some HTML, with special tags for some elements, such as: or . Then, while rendering them out (in a different view), I'd compile these elements into stand-alone widgets and show them. This would be particularly useful with angularjs, as I would be able to specify a widget in the form of a simple directive:
<div data-wg-timer
data-wg-timer-start="14-May-2014"
data-wg-timer-end="19-May-2014">
{{days}} Days, {{hours}}:{{minutes}}:{{seconds}}
</div>
Now, in this case, I'd require multiple attributes to specify the different options I'd like to pass into the directive. So instead of specifying each allowedAttribute as a comma-separated list like so: ['data-wg-timer', 'data-wg-timer-start', 'data-wg-timer-end'], I want a way to specify the same as so: ['data-wg-*']
Is it possible, or doable?
Hello there,
First of all, thank you for this nifty little tool. It's really easy to use :)
I'd like to know if it's possible to specify a list of allowed attributes as a glob (or using the wildcard
*).One use-case would be to let users enter some HTML, with special tags for some elements, such as: or . Then, while rendering them out (in a different view), I'd compile these elements into stand-alone widgets and show them. This would be particularly useful with angularjs, as I would be able to specify a widget in the form of a simple directive:
Now, in this case, I'd require multiple attributes to specify the different options I'd like to pass into the directive. So instead of specifying each allowedAttribute as a comma-separated list like so:
['data-wg-timer', 'data-wg-timer-start', 'data-wg-timer-end'], I want a way to specify the same as so:['data-wg-*']Is it possible, or doable?