discourse/app/assets/javascripts/discourse-common/addon/lib/dom-from-string.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

7 lines
198 B
JavaScript
Raw Normal View History

export default function domFromString(string) {
const template = document.createElement("template");
string = string.trim();
template.innerHTML = string;
return template.content.children;
}