0

I have div with HTML character ▲ content like:

<div id="div1">&#9650;</div>

I want to get the content of div1 ie, &#9650; in jQuery. I did

$('#div1').html();

But this is returning the character ▲ instead of &#9650;

How can I get &#9650; in jQuery?

Jenz
  • 8,172
  • 7
  • 41
  • 75

0 Answers0