This commit is contained in:
Daniel 2025-04-23 21:33:55 +08:00
parent 5b50a4d853
commit fc58892ce8
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
4 changed files with 6 additions and 5 deletions

View file

@ -81,6 +81,7 @@ func HTML2Tree(htmlStr string, luteEngine *lute.Lute) (tree *parse.Tree, withMat
if n.ParentIs(ast.NodeTableCell) {
n.Tokens = bytes.ReplaceAll(n.Tokens, []byte("\\|"), []byte("|"))
n.Tokens = bytes.ReplaceAll(n.Tokens, []byte("|"), []byte("\\|"))
n.Tokens = bytes.ReplaceAll(n.Tokens, []byte("\\<br /\\>"), []byte("<br />"))
}
}