I have data attr on my tag. Data attr has HTML entity in it. I can get content of that attr with data method from jQuery. However, HTML entity is modified and instead of getting — I get —.
How to get the raw content?
JsFiddle demo.
I think that is not possible.
As I understand it, the browser automatically resolves —, therefor you would have to encode it server-side to —.
jsFiddle
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With