Skip to content

v16.1 build escapes special characters in index.html #25388

Closed

Description

@mbertuzzi

Command

build

Is this a regression?

  • Yes, this behavior used to work in the previous version

The previous version in which this bug was not present was

v16.0

Description

Building a project with some special characters in index.html (e.g. '$' or '&') makes them to be escaped in HTML format ($ or &)

immagine

Minimal Reproduction

Create a new empty angular 16.1 project, change the title e.g. with ${title} in index.html and build it.
In the dist folder the index.html has the escaped string ${title} instead of the original string

Exception or Error

No response

Your Environment

Angular CLI: 16.1.0
Node: 18.15.0
Package Manager: npm 9.5.0
OS: darwin x64

Angular: 16.1.1
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1601.0
@angular-devkit/build-angular   16.1.0
@angular-devkit/core            16.1.0
@angular-devkit/schematics      16.1.0
@angular/cli                    16.1.0
@schematics/angular             16.1.0
rxjs                            7.8.1
typescript                      5.0.4

Anything else relevant?

No response

Activity

  1. self-assigned this
    on Jun 16, 2023
  2. added 3 commits that reference this issue on Jun 16, 2023
    52e3b87
    5358cd5
    ec6d787
  3. added 2 commits that reference this issue on Jun 22, 2023
    f3f618f
    01ec505
  4. angular-automatic-lock-bot commented on Jul 23, 2023

    @angular-automatic-lock-bot

    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.

  5. locked and limited conversation to collaborators on Jul 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions