try this code instead for &amp issue

$('<div />').html.().text()