Skip to content

Commit 55456db

Browse files
authored
Treat unknown html tags as plain text (#509)
1 parent d5c330a commit 55456db

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/message/html.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,8 @@ fn h2t(hdl: &Handle, state: &mut TreeGenState) -> StyleTreeChildren {
820820
*c2t(&node.children.borrow(), state)
821821
},
822822

823-
_ => return vec![],
823+
// Treat unknown tags as plain text.
824+
_ => *c2t(&node.children.borrow(), state),
824825
}
825826
},
826827

0 commit comments

Comments
 (0)