1 parent 0c70ea7 commit 6917372Copy full SHA for 6917372
1 file changed
src/web/normalization/prepareHtmlForWeb.ts
@@ -22,6 +22,8 @@ export function prepareHtmlForWeb(html: string) {
22
* </ul>
23
*/
24
function checkboxHtmlToWeb(html: string): string {
25
+ if (typeof DOMParser === 'undefined') return html;
26
+
27
const parser = new DOMParser();
28
const doc = parser.parseFromString(html, 'text/html');
29
0 commit comments