1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-06-27 16:36:00 +00:00

reader/processor: minifier is breaking HTML entry content

This commit is contained in:
Frédéric Guillot 2024-04-23 20:08:09 -07:00
parent 2c4c845cd2
commit fb075b60b5
2 changed files with 27 additions and 16 deletions

View file

@ -117,3 +117,12 @@ func TestIsRecentEntry(t *testing.T) {
}
}
}
func TestMinifyEntryContent(t *testing.T) {
input := `<p> Some text with a <a href="http://example.org/"> link </a> </p>`
expected := `<p>Some text with a <a href="http://example.org/">link</a></p>`
result := minifyEntryContent(input)
if expected != result {
t.Errorf(`Unexpected result, got %q`, result)
}
}