Trying to add a link in a generic HTML widget with a data-xxx attribute. It gets stripped out when I save. Is there a way to add this to the list of allowed attributes?
Trying to add a link in a generic HTML widget with a data-xxx attribute. It gets stripped out when I save. Is there a way to add this to the list of allowed attributes?
Allowing data attributes will be configurable in the next major release. It is not an option in any version of 11.
options to bypass this would be the Unfiltered HTML widget or creating an IEmbeddableContentFragmentType To insert that code.
Hi , a couple of questions for you.
Q: Can you confirm that there is an option to configure this in version 12?
Q: This issue appears to not only affect data-xyz attributes, but also made up ones like <div qwerty="1234">. Is it possible to provide me with detailed rules on what is stripped and what isn't? Eg. is it only allowing HTML4 or 5 attributes that are defined in the spec?
Thanks.
Hi , a couple of questions for you.
Q: Can you confirm that there is an option to configure this in version 12?
Q: This issue appears to not only affect data-xyz attributes, but also made up ones like <div qwerty="1234">. Is it possible to provide me with detailed rules on what is stripped and what isn't? Eg. is it only allowing HTML4 or 5 attributes that are defined in the spec?
Thanks.
Content filtering in version 12 does now have an option to allow data attributes. This would only apply to attributes that start with data-. Any made up attributes should still be removed.
Thanks.