-
Notifications
You must be signed in to change notification settings - Fork 160
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Related to #895 we could have an html.unsafe
function that makes it easier to render HTML unsafely. It could work like this:
```js
function htmlUnsafe(string) {
const template = document.createElement("template");
template.innerHTML = string;
return template.content.cloneNode(true);
}
```
This is ${htmlUnsafe(`<b>unsafe</b>`)}.
eoinmurray, MaxGeneris, eamontaaffe, junghoon-son and kyrre
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request