{"action":"created","issue":{"url":"https://api.github.com/repos/dg/texy/issues/22","labels_url":"https://api.github.com/repos/dg/texy/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/dg/texy/issues/22/comments","events_url":"https://api.github.com/repos/dg/texy/issues/22/events","html_url":"https://github.com/dg/texy/issues/22","id":31439808,"number":22,"title":"Texy removes data-* attributes","user":{"login":"mhujer","id":353372,"avatar_url":"https://avatars.githubusercontent.com/u/353372?v=3","gravatar_id":"","url":"https://api.github.com/users/mhujer","html_url":"https://github.com/mhujer","followers_url":"https://api.github.com/users/mhujer/followers","following_url":"https://api.github.com/users/mhujer/following{/other_user}","gists_url":"https://api.github.com/users/mhujer/gists{/gist_id}","starred_url":"https://api.github.com/users/mhujer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhujer/subscriptions","organizations_url":"https://api.github.com/users/mhujer/orgs","repos_url":"https://api.github.com/users/mhujer/repos","events_url":"https://api.github.com/users/mhujer/events{/privacy}","received_events_url":"https://api.github.com/users/mhujer/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2014-04-14T07:36:50Z","updated_at":"2015-10-21T07:05:30Z","closed_at":"2015-10-20T16:42:35Z","body":"`data-*` attributes are [allowed in HTML5](http://www.w3.org/TR/html5/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes) but Texy strips them. Some of them can be allowed manually:\r\n```\r\n$texy->dtd['a'][0]['data-id'] = 1;\r\n$texy->dtd['a'][0]['data-animation'] = 1;\r\n```\r\nBut it would be great to have possibility to allow all of them (they are often used in user content to trigger some JS - lightboxes and stuff).\r\n\r\n\r\nTestcase: https://github.com/mhujer/texy/compare/gh-22?expand=1\r\n\r\n\r\nRef: old thread: http://forum.texy.info/cs/887-texy-maze-attributy-napr-data-x"},"comment":{"url":"https://api.github.com/repos/dg/texy/issues/comments/149800045","html_url":"https://github.com/dg/texy/issues/22#issuecomment-149800045","issue_url":"https://api.github.com/repos/dg/texy/issues/22","id":149800045,"user":{"login":"tomasfejfar","id":642928,"avatar_url":"https://avatars.githubusercontent.com/u/642928?v=3","gravatar_id":"","url":"https://api.github.com/users/tomasfejfar","html_url":"https://github.com/tomasfejfar","followers_url":"https://api.github.com/users/tomasfejfar/followers","following_url":"https://api.github.com/users/tomasfejfar/following{/other_user}","gists_url":"https://api.github.com/users/tomasfejfar/gists{/gist_id}","starred_url":"https://api.github.com/users/tomasfejfar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomasfejfar/subscriptions","organizations_url":"https://api.github.com/users/tomasfejfar/orgs","repos_url":"https://api.github.com/users/tomasfejfar/repos","events_url":"https://api.github.com/users/tomasfejfar/events{/privacy}","received_events_url":"https://api.github.com/users/tomasfejfar/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T07:05:30Z","updated_at":"2015-10-21T07:05:30Z","body":":+1: "}}