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:
parent
5353211206
commit
f916373f55
2 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue