Replace “ &ldquo with double quotes - Javascript String Operation

Javascript examples for String Operation:String Quote

Description

Replace “ &ldquo with double quotes

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript">
    window.onload=( function() {//from  ww  w  .  j a  va2s  .  c  o  m
var s = "Test ?? this ? text ? here";
s = s.replace(/\u201C|\u201D/g, '"');
s = s.replace(/\u2019/g, "'");
document.write(s);
    });

      </script> 
   </head> 
   <body>  
   </body>
</html>

Related Tutorials