mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
The lexer turns the &ngsp; pseudo-entity into the private-use character
U+E500, and the normal text path replaces it with a space through
replaceNgsp. NonBindableVisitor.visitText did not, so the character leaked
into the output when whitespace trimming did not run first, such as inside
a pre element or with preserveWhitespaces enabled.
Call replaceNgsp in NonBindableVisitor.visitText as well.
Fixes #71895
(cherry picked from commit 5e9c18755c)
Tests in this directory are excluded from running in the browser and only run in node.