Hocuri
4d2542cee5
Don't show HTML if there is no content and there is a file attached
...
Fix https://github.com/deltachat/deltachat-core-rust/issues/1982
2020-10-19 13:07:55 +02:00
Alexander Krotov
67cddedf7e
Switch from lazy_static to once_cell
2020-10-18 15:47:21 +03:00
Hocuri
3faf968b7c
Fix tests
2020-08-19 20:03:08 +02:00
Hocuri
1a736ca6c3
Fix #1804 : remove <!doctype html> and accept invalid HTML
...
This fixes #1804 in two ways: First, it removes a <!doctype html> from
the start of the mail, if there is any.
Then, it parses the html itself it quick-xml fails, just stripping
everything between < and >.
Both of these would have fixed this specific issue.
Also, add tests for both fixes.
2020-08-19 20:03:08 +02:00
Alexander Krotov
18d8ef9ffc
dehtml: handle empty tags
2020-08-07 23:18:34 +03:00
Alexander Krotov
db5b5d321b
clippy: remove redundant imports
2020-04-13 23:02:57 +03:00
Hocuri
134b09dba5
Fix #1373 , ignore incorrect html close tags
2020-04-13 17:40:07 +02:00
Alexander Krotov
fe4080d59f
refactor(simplify): move dehtml dependency to mimeparser
...
This change also removes unnecessary String clone for HTML messages.
2019-12-20 12:55:57 +01:00
Alexander Krotov
a242fcfd2c
refactor(dehtml): remove Result unwrap in dehtml_starttag_cb()
2019-12-18 23:24:43 +03:00
Alexander Krotov
694d8fd6fb
Move dc_dehtml to dehtml and remove unnecessary is_empty check
2019-12-01 13:37:37 +01:00