mirror of
https://github.com/kokonect-link/cherrypick
synced 2024-11-01 15:45:58 +09:00
Fix #1857
This commit is contained in:
parent
ae8a87c40b
commit
5ea0f23389
@ -1,6 +1,8 @@
|
|||||||
const parse5 = require('parse5');
|
const parse5 = require('parse5');
|
||||||
|
|
||||||
export default function(html: string): string {
|
export default function(html: string): string {
|
||||||
|
if (html == null) return null;
|
||||||
|
|
||||||
const dom = parse5.parseFragment(html);
|
const dom = parse5.parseFragment(html);
|
||||||
|
|
||||||
let text = '';
|
let text = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user