about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <cnx@loang.net>2023-08-31 10:02:20 +0900
committerNguyễn Gia Phong <cnx@loang.net>2024-01-17 17:24:20 +0900
commit24fadc81cd80a3781b40c6afc7b088161a9d1991 (patch)
tree6d22c0864191ef68a63cbc889c5e787f92db9cbd
parent355050b447929113577301a97015a6142a86f4a8 (diff)
downloadfead-main.tar.gz
Strip HTML tags from fetched texts HEAD main
-rwxr-xr-xsrc/fead.py2
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