diff --git a/kernel/model/import.go b/kernel/model/import.go index 4d69a3a1a..1745c6d0d 100644 --- a/kernel/model/import.go +++ b/kernel/model/import.go @@ -67,7 +67,7 @@ func HTML2Markdown(htmlStr string, luteEngine *lute.Lute) (markdown string, with } func HTML2Tree(htmlStr string, luteEngine *lute.Lute) (tree *parse.Tree, withMath bool) { - htmlStr = util.RemoveInvalid(htmlStr) + htmlStr = gulu.Str.RemovePUA(htmlStr) assetDirPath := filepath.Join(util.DataDir, "assets") tree = luteEngine.HTML2Tree(htmlStr) ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {