Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parser: whitelist data-foo attribute #384

Open
classyPimp opened this issue Aug 2, 2017 · 1 comment
Open

parser: whitelist data-foo attribute #384

classyPimp opened this issue Aug 2, 2017 · 1 comment

Comments

@classyPimp
Copy link

My parser rule for img tag is:

img: {
        check_attributes: {
           "data-imageId": "any",
           src: "src"
     }
 }

But when getValue() that data attribute is ignored.
Is there a way to whitelist it?

@cm-cm-cm-cm
Copy link

You can only whitelast all data attributes at once like this:

"data-*": "any",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants