data-options fix

Some options aren't correctly parsed in `data-options` attribute. I think this should fix the issue.
Merge pull request #5270 from glafarge/patch-3

data-options fix