When we regex-check the MIME header we should also support zero space between the type and the charset, say "text/html;charset=utf-8".
This commit is contained in:
parent
307152202b
commit
87958400a1
|
@ -61,7 +61,7 @@ defmodule Readability do
|
|||
protect_attrs: ~r/^(?!id|rel|for|summary|title|href|src|alt|srcdoc)/i
|
||||
]
|
||||
|
||||
@markup_mimes ~r/^(application|text)\/[a-z\-_\.\+]+ml(;\s+charset=.*)?$/i
|
||||
@markup_mimes ~r/^(application|text)\/[a-z\-_\.\+]+ml(;\s*charset=.*)?$/i
|
||||
|
||||
@type html_tree :: tuple | list
|
||||
@type raw_html :: binary
|
||||
|
|
Loading…
Reference in New Issue