Single quotes in meta tag being replaced with &apos on ionic upload

When I run the command ionic upload, all of the single quotes within the below meta tag are replaced with &apos. It was also adding &#xFEFF to the beginning of index.html but I managed to find a work around for this by changing the encoding of the document.

It looks as though a few people have came across this issue as well but I have had no luck in finding a workaround for this.

I have recently updated ionic to beta as it was mentioned that this version may contain the fix, but still no luck.

My system information:
Cordova CLI: 5.3.3
Gulp version: CLI version 3.9.0
Gulp local: Local version 3.9.0
Ionic Version: 1.1.0
Ionic CLI Version: 1.7.7-beta.0
Ionic App Lib Version: 0.6.2
OS: Windows 7 SP1
Node Version: v4.2.0

Original meta tag:

<meta http-equiv="Content-Security-Policy" content="default-src *; script-src 'self' 'unsafe-inline' 'unsafe-eval' *; style-src  'self' 'unsafe-inline' *">

After I run ionic upload:

<meta http-equiv="Content-Security-Policy" content="default-src *; script-src &apos;self&apos; &apos;unsafe-inline&apos; &apos;unsafe-eval&apos; *; style-src  &apos;self&apos; &apos;unsafe-inline&apos; *">

Does anyone know of a workaround I can implement to fix this?

Thank you

2 Likes