angular-cn/packages/compiler/src
Kristiyan Kostadinov b33665ab2c fix(compiler): add mappings for all HTML entities (#42818)
Angular inserts text either through text nodes (`document.createTextNode`) or using `textContent`, but the drawback of doing so is that HTML entities won't be decoded. In order to work around it, the compiler has some logic that maps the entities to their unicode representation which can safely be inserted. The problem is that our current mapping is arbitrarily limited which means that some entities will be mapped while others will throw an error, even though they're valid.

These changes expand the list to cover all entities that are supported by the HTML spec.

Fixes #41186.

PR Close #42818
2021-07-12 14:41:20 -07:00
..
aot refactor: add override keyword to members implementing abstract declarations (#42512) 2021-07-12 13:11:17 -07:00
compiler_util refactor(compiler): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:14 -07:00
expression_parser refactor: add override keyword to members implementing abstract declarations (#42512) 2021-07-12 13:11:17 -07:00
i18n refactor: add override keyword to members implementing abstract declarations (#42512) 2021-07-12 13:11:17 -07:00
jit docs: update links to use HTTPS as protocol (#39718) 2020-11-20 12:52:16 -08:00
ml_parser fix(compiler): add mappings for all HTML entities (#42818) 2021-07-12 14:41:20 -07:00
output refactor: add override keyword to members implementing abstract declarations (#42512) 2021-07-12 13:11:17 -07:00
render3 refactor(compiler): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:14 -07:00
schema refactor: add override keyword to members implementing abstract declarations (#42512) 2021-07-12 13:11:17 -07:00
template_parser refactor(compiler): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:14 -07:00
view_compiler fix(compiler): generate view restoration for keyed write inside template listener (#42603) 2021-06-21 18:30:37 +00:00
assertions.ts
ast_path.ts
chars.ts
compile_metadata.ts refactor(compiler): implement `ngDeclareInjectable()` (#41316) 2021-04-07 13:57:13 -07:00
compile_reflector.ts
compiler.ts refactor(compiler): clean up template information passed for partial compilation (#41583) 2021-04-16 09:33:05 -07:00
compiler_facade_interface.ts refactor(compiler): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:14 -07:00
config.ts
constant_pool.ts refactor: add override keyword to members implementing abstract declarations (#42512) 2021-07-12 13:11:17 -07:00
core.ts refactor(core): remove the need for `ɵɵinjectPipeChangeDetectorRef()` (#41231) 2021-03-30 16:46:37 -07:00
directive_normalizer.ts
directive_resolver.ts
identifiers.ts refactor(compiler-cli): introduce declaration function to declare class metadata (#41200) 2021-04-12 10:41:17 -07:00
injectable_compiler.ts refactor(compiler): implement `ngDeclareInjectable()` (#41316) 2021-04-07 13:57:13 -07:00
injectable_compiler_2.ts refactor(compiler): implement `ngDeclareInjectable()` (#41316) 2021-04-07 13:57:13 -07:00
jit_compiler_facade.ts refactor(compiler): implement `ngDeclareInjectable()` (#41316) 2021-04-07 13:57:13 -07:00
lifecycle_reflector.ts
metadata_resolver.ts refactor(compiler): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:14 -07:00
ng_module_compiler.ts
ng_module_resolver.ts
parse_util.ts refactor(compiler): store the `fullStart` location on `ParseSourceSpan`s (#39486) 2020-11-06 09:01:37 -08:00
pipe_resolver.ts
provider_analyzer.ts
resource_loader.ts refactor(compiler): ensure compatibility with noImplicitOverride (#42512) 2021-07-12 13:11:14 -07:00
selector.ts feat(compiler): support directive selectors with attributes containing `$` (#41567) 2021-05-04 21:06:58 -07:00
shadow_css.ts fix(compiler): preserve @page rules in encapsulated styles (#41915) 2021-05-06 09:33:56 -04:00
style_compiler.ts
style_url_resolver.ts
summary_resolver.ts
url_resolver.ts docs: remove unused "docregions" (#40479) 2021-01-20 16:12:15 -08:00
util.ts Revert "refactor(core): optimize calls to `split` and `slice` while computing version parts (#41208)" 2021-05-12 14:13:50 -04:00
version.ts docs: fix package name in version.ts files in different packages (#41208) 2021-05-10 10:26:34 -04:00