Commit 4f1c2f19 authored by Matija Obreza's avatar Matija Obreza

Sanitizer: Allow target attr on a

parent 38b9dfbb
......@@ -38,7 +38,7 @@ public class OWASPSanitizer implements HtmlSanitizer {
.allowAttributes("title")
.globally()
// Href on links
.allowAttributes("href")
.allowAttributes("href", "target")
.onElements("a")
// Defeat link spammers.
.requireRelNofollowOnLinks()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment