diff options
author | Nguyễn Gia Phong <cnx@loang.net> | 2023-08-31 10:02:20 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <cnx@loang.net> | 2024-01-17 17:24:20 +0900 |
commit | 24fadc81cd80a3781b40c6afc7b088161a9d1991 (patch) | |
tree | 6d22c0864191ef68a63cbc889c5e787f92db9cbd | |
parent | 355050b447929113577301a97015a6142a86f4a8 (diff) | |
download | fead-main.tar.gz |
-rwxr-xr-x | src/fead.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fead.py b/src/fead.py index a900fce..81b959c 100755 --- a/src/fead.py +++ b/src/fead.py @@ -116,7 +116,7 @@ def unparse_atom_text(xml): assert len(xml) == 1 and xml[0].tag.endswith(f'{XHTML_NS}div') for elem in xml[0].iter(): elem.tag = elem.tag[len(XHTML_NS):] - return unparse_xml(xml[0]).decode() + return HTML_TAG.sub('', unparse_xml(xml[0]).decode()) return xml.text |