Buckets:
| import { directive } from '../directive.js'; | |
| import { UnsafeHTMLDirective } from './unsafe-html.js'; | |
| /** | |
| * @license | |
| * Copyright 2017 Google LLC | |
| * SPDX-License-Identifier: BSD-3-Clause | |
| */ | |
| const SVG_RESULT = 2; | |
| class UnsafeSVGDirective extends UnsafeHTMLDirective { | |
| } | |
| UnsafeSVGDirective.directiveName = 'unsafeSVG'; | |
| UnsafeSVGDirective.resultType = SVG_RESULT; | |
| /** | |
| * Renders the result as SVG, rather than text. | |
| * | |
| * The values `undefined`, `null`, and `nothing`, will all result in no content | |
| * (empty string) being rendered. | |
| * | |
| * Note, this is unsafe to use with any user-provided input that hasn't been | |
| * sanitized or escaped, as it may lead to cross-site-scripting | |
| * vulnerabilities. | |
| */ | |
| const unsafeSVG = directive(UnsafeSVGDirective); | |
| export { unsafeSVG }; | |
| //# sourceMappingURL=unsafe-svg.js.map | |
Xet Storage Details
- Size:
- 811 Bytes
- Xet hash:
- a848c49aa30e8a4a98c6c238ae4853b726abc8a95f114325135ec0deb888590b
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.