/
githubmirror
/
angular
Обзор
Документация
Войти
/
githubmirror
/
angular
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
packages/core/src/sanitization/sanitizer.ts
27 строк
834 B
Alan Agius
fix(core): support prefix-insensitive DOM schema lookups and compile-time i18n attribute validation
19 май 2026, 23:00
Не верифицирован
19 май 2026, 23:00
61a97f2
Код
Авторство
О чём код?
/** * @license * Copyright Google LLC All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.dev/license */ import {ɵɵdefineInjectable} from '../di/interface/defs'; import {SecurityContext} from './dom_security_schema'; /** * Sanitizer is used by the views to sanitize potentially dangerous values. * * @see [Sanitization and security contexts](best-practices/security#sanitization-and-security-contexts) * * @publicApi */ export abstract class Sanitizer { abstract sanitize(context: SecurityContext, value: {} | string | null): string | null; /** @nocollapse */ static ɵprov = /** @pureOrBreakMyCode */ /* @__PURE__ */ ɵɵdefineInjectable({ token: Sanitizer, providedIn: 'root', factory: () => null, }); }