-
Notifications
You must be signed in to change notification settings - Fork 27.1k
Handling of "<" in html #5679
Copy link
Copy link
Open
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: compilerIssues related to `ngc`, Angular's template compilerIssues related to `ngc`, Angular's template compilercompiler: parsertype: bug/fix
Milestone
Description
#5657 allows "<" in text nodes so that <p>{{ a < b ? c : d }}</p> does not throw.
However this is not valid html - < would have to be < to have a valid html.
One potential issue with the current approach is that in <p>{{ a <b && c > d }}</p> <b && c > would be parsed as an html tag and would not be easy for user to debug.
We could solve this by making the lexer aware of angular expression.
/cc @tbosch
edit {{ "<b>text</b>" }} could also cause pb
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgentAn issue that is relevant to core functions, but does not impede progress. Important, but not urgentarea: compilerIssues related to `ngc`, Angular's template compilerIssues related to `ngc`, Angular's template compilercompiler: parsertype: bug/fix