]> Sergey Matveev's repositories - feeder.git/commitdiff
CDATA harms rendering
authorSergey Matveev <stargrave@stargrave.org>
Fri, 18 Feb 2022 06:59:51 +0000 (09:59 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Fri, 18 Feb 2022 06:59:53 +0000 (09:59 +0300)
cmd/feed2mdir/main.go

index cac223700db4a7dae8ec28300db276e7f7460945..9074cefab80bc14b375d4d787d3d2741715b5d67 100644 (file)
@@ -65,6 +65,8 @@ func main() {
                } else {
                        what = item.Content
                }
+               what = strings.TrimPrefix(what, "<![CDATA[")
+               what = strings.TrimSuffix(what, "]]>")
                exists := false
                for _, d := range []string{"cur", "new"} {
                        entries, err := os.ReadDir(path.Join(mdir, d))