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

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

VBA function to include CDATA -