mirror of
https://github.com/miniflux/v2.git
synced 2025-06-27 16:36:00 +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
|
@ -25,6 +25,7 @@ var (
|
|||
"aside": {},
|
||||
"audio": {"src"},
|
||||
"blockquote": {},
|
||||
"b": {},
|
||||
"br": {},
|
||||
"caption": {},
|
||||
"cite": {},
|
||||
|
|
|
@ -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