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:
parent
2c4c845cd2
commit
fb075b60b5
2 changed files with 27 additions and 16 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue