big style update
This commit is contained in:
8
app/domParse.ts
Normal file
8
app/domParse.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { inject } from "vue";
|
||||
|
||||
export default function getDomParser() {
|
||||
return inject(
|
||||
"dom-parse",
|
||||
(innerHTML: string) => Object.assign(document.createElement("div"), { innerHTML }),
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user