Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get attr with raw entities?

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.

like image 499
daGrevis Avatar asked Mar 06 '13 12:03

daGrevis


1 Answers

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

like image 116
StrubT Avatar answered Oct 03 '22 09:10

StrubT