1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-07-17 17:08:36 +00:00

fix: allow the <b> tag

This commit is contained in:
jvoisin 2025-03-06 18:23:27 +01:00 committed by Frédéric Guillot
parent 5353211206
commit f916373f55
2 changed files with 3 additions and 2 deletions

View file

@ -198,7 +198,7 @@ func TestProtocolRelativeURL(t *testing.T) {
}
func TestInvalidTag(t *testing.T) {
input := `<p>My invalid <b>tag</b>.</p>`
input := `<p>My invalid <z>tag</z>.</p>`
expected := `<p>My invalid tag.</p>`
output := Sanitize("http://example.org/", input)
@ -238,7 +238,7 @@ func TestUnknownTag(t *testing.T) {
}
func TestInvalidNestedTag(t *testing.T) {
input := `<p>My invalid <b>tag with some <em>valid</em> tag</b>.</p>`
input := `<p>My invalid <z>tag with some <em>valid</em> tag</z>.</p>`
expected := `<p>My invalid tag with some <em>valid</em> tag.</p>`
output := Sanitize("http://example.org/", input)