DOMParser字符串转html

118 阅读1分钟

const parser = new DOMParser();
const doc = parser.parseFromString(string, 'text/html');