How to allow data attr in tags in Redactor HTML Purifer
See this config setting: http://htmlpurifier.org/live/configdoc/plain.html#HTML.AllowedAttributes

You should be able to use it to allow data attributes.