-
Notifications
You must be signed in to change notification settings - Fork 652
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ionic upload modify index.html #452
Comments
Can you post some before and after HTML? Also, |
@thomas-tran it looks like BOM. What text editor do you use? |
Visual studio 2013
|
Had the same issue, I closed Visual Studio, opened the index.html file in Notepad ++ and changed the encoding to ' Encode in UTF without BOM', then run IONIC UPLOAD and all is fine. I know it's not a fix but it's a workaround until the issue is resolved. @thomas-tran @jbavari |
@bradmartin @thomas-tran - Working on a fix now - going to just remove the BOM and save the file as is. Would anyone be available to test it to make sure it doesnt cause any issues with Visual studio? |
I'll test it later today. On Fri, Jun 5, 2015 at 12:03 PM, Josh Bavari notifications@github.com
|
@bradmartin - Thanks for the workaround! I haven't had any issues with Visual Studio. |
@jbavari no longer modifies the index.html file when VS is opened or closed. Thanks for the fix, saves me a minute or two when uploading. |
@jbavari The fix isn't working anymore. |
@jbavari - another issue with ionic upload. |
This was after setting 'Encoding without BOM' via notepad ++ with VS closed. Since the work around you pushed a couple days ago quit working today. |
@bradmartin In the screenshot you provided with I'll whip together a test to ensure that doesnt happen. |
@jbavari - Not near the source code at the moment but it was either single quote or double quote, was just passing the state as a string. If that's what you're asking. If you need more details let me know. |
@bradmartin It's all good. Looks to be a simple fix by adding |
@bradmartin This should solve it - with test to verify :) |
@jbavari - sorry for my ignorance. I'm using Ionic CLI 1.5.5, so will this fix be present or shipped with an update to the CLI? I just ran 'ionic upload' and all of my single quotes were modified to '&apos' . Thanks for your help. |
Yes, in the next release, this will be fixed. @bradmartin Try out the beta version to see if that works: |
Yea I'm using beta and noticed there are still some odd issues. The only fix I have is to open notepad ++ and change the encoding to 'UTF On Sat, Jul 4, 2015 at 6:51 PM, nobosny notifications@github.com wrote:
|
Thank you bradmartin, but I tried that too, and just when I try to upload, it changes my index.html, all my single quotes are changed to "apos;" with a & in front (if I put it here, it turns into the html character), and since I'm trying to embed a Google Map on my app, i'm using Content-Security-Policy and external google javascript files. I'm not able to test the app using IonicView. |
I am still experiencing the same issue as @nobosny regarding the Content-Security-Policy issue. If there is anything I can provide to help please let me know. Thank you! System information:
|
I am experiencing the same issue as @nobosny regarding the Content-Security-Policy issue. If there is anything I can provide to help please let me know. System information: |
This issue is not solved... above is my ionic info, but I did some test and not only is not working with the spec/index.html file case, also with the Content-Security-Policy meta that is also referenced here. I've checked the upload.js code and it includes the fix, but the fix doesn't solve the problem. With this bug seems that is not possible to use ionic upload to test apps with ionic view if you need a CSP or some special chars inside HTML attributes :_( Thanks in advance!
|
We are taking a look for an upcoming View update. Thanks for the info. |
Hi @mlynch it sounds fantastic to me 👍 |
@mlynch Any updates on this? Getting pretty desperate here 😢 |
This should be fixed in the latest version of the CLI. Let us know if you're still having issues, thanks! |
I'll give it a try in the following days, keep you informed 👍 |
I tried to upload project to ionic view for testing. The CLI modified my index and put extra characters as a result my app was broken.
The text was updated successfully, but these errors were encountered: