I\'m using jQuery\'s .data() to work with custom HTML5 data attributes where the value of the attribute needs to be able to contain both single quotes and doubl
.data()
It is a little bit tricky but you can select dom objects with their data attributes that contains single quotes. The trick is \\'
data
\\'
Hello
Fiddle