javascript - How to convert curly quotes to “ -


how convert multibyte characters curly quotes equivalent entity “ using jquery or javascript?

var usertxt = '“testing”';   

after converting usertxt should => “testing”

here's how it:

$('<div/>').text('this fun & stuff').html(); // evaluates "this fun &amp; stuff" 

source

or can this way.


Comments

Popular posts from this blog

pentaho - Carte Status / Kettle Slave Server Status page shows status for random runs instead of the latest run -

R summary function in ddply (plyr) in a simple way -

c# - Are delegates created via lambda expressions guaranteed to be cached? -