NppTidy2 icon indicating copy to clipboard operation
NppTidy2 copied to clipboard

Apostrophe converted to #39; JavaScript inside HTML

Open fWd82 opened this issue 8 years ago • 0 comments

Hi When I apply: Plugin > Tudy2 > Tidy (Config 1) to my notedpad++ project which is having JavaScript Code. It convert Apostrophe ( ' ) to ( #39; ). Seems like it is trying to encode it to something.

Before Applying Tidy2:

<script type="text/javascript" language="javascript">
$(document).ready(function() {
$('div').bind('click', function( event ){
alert('Hi there!');
});
});
</script>

After Applying Tidy2:

<script type="text/javascript" language="javascript">
$(document).ready(function() {
$(&#39;div&#39;).bind(&#39;click&#39;, function( event ){
alert(&#39;Hi there!&#39;);
});
});
</script>

Thank You

  • FAWAD

fWd82 avatar Feb 03 '17 05:02 fWd82