SIGN IN SIGN UP
angular / angular.js UNCLAIMED

AngularJS - HTML enhanced for web apps!

0 0 51 JavaScript

docs(errorDisplay): encode `<` and `>` in error messages

When an error message contains an HTML string (e.g. `$location:nobase` containing `<base>`), it was
interpreted as a literal HTML element, instead of text. Error messages are not expected to render
as HTML, but we still need to use `.html()` in `errorDisplay`, so that the links created by
`errorLinkFilter` are properly displayed.
This commit solves this issue by replacing `<`/`>` with `&lt;`/`&gt;`.

Related to #14016.
G
Georgios Kalpakas committed
8d02b07af4397b2eda85cf803862220ecd629d2a
Parent: 24af9e2
Committed by Martin Staffa <mjstaffa@googlemail.com> on 2/29/2016, 4:34:11 PM