mirror of
https://github.com/angular/angular.git
synced 2026-11-22 22:55:25 -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)