We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 406c058 + 3e95f00 commit 5876a62Copy full SHA for 5876a62
src/DocumentComponent.ts
@@ -27,6 +27,9 @@ export class DocumentComponent extends NodeComponent<DocumentFragment> {
27
/**
28
* Template literal tag function that accepts HTML code with components in a
29
* string literal
30
+ *
31
+ * @warning This method should only be used with trusted inputs
32
+ * to avoid XSS vulnerabilities.
33
*/
34
public static tag(strings: TemplateStringsArray, ...components: (any | NodeComponent<any>)[]): DocumentComponent {
35
const idPrefix = `tag-${crypto.randomUUID()}-`;
0 commit comments