Skip to content
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

ng build replaces HTML entities with the escaped value #10696

Closed
luisabreu opened this issue May 7, 2018 · 3 comments
Closed

ng build replaces HTML entities with the escaped value #10696

luisabreu opened this issue May 7, 2018 · 3 comments
Labels
needs: investigation Requires some digging to determine if action is needed

Comments

@luisabreu
Copy link

Angular CLI: 6.0.0
Node: 10.0.0
OS: win32 x64
Angular: 6.0.0
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.6.0
@angular-devkit/build-angular 0.6.0
@angular-devkit/build-optimizer 0.6.0
@angular-devkit/core 0.6.0
@angular-devkit/schematics 0.6.0
@ngtools/webpack 6.0.0
@schematics/angular 0.6.0
@schematics/update 0.6.0
rxjs 6.1.0
typescript 2.7.2
webpack 4.6.0

The index.html page (index page of the project) ahs the following title:

<title>Veículos</title>

After running the following command:

ng build --prod --aot --base-href ~/views/dist/

The HTML entity is replace by it's value in the destination folder (instead of keeping the escaped value):

<title>Veículos</title>

I'm almost positive that this didn't happen in the previous releases...

@clydin
Copy link
Member

clydin commented May 8, 2018

Are you considering this a defect? This appears to function properly in a web browser.

@clydin clydin added the needs: investigation Requires some digging to determine if action is needed label May 8, 2018
@luisabreu
Copy link
Author

well, is there any justification for replacing the HTML entity with its value on the file that is copied to the dist folder? Loading in the browser ends up showing "veículos" instead of "veículos"...maybe it's related with the file's encoding?

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 8, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: investigation Requires some digging to determine if action is needed
Projects
None yet
Development

No branches or pull requests

2 participants