Open alltom opened 5 years ago
I'd like bluemonday to add referrerpolicy="no-referrer" to all img tags, but I don't see a way to do that with the current API. Maybe we could get an API like RequireReferrerPolicyOnImages(policy ReferrerPolicy)?
referrerpolicy="no-referrer"
img
RequireReferrerPolicyOnImages(policy ReferrerPolicy)
The referrerpolicy attribute is experimental but has decent support.
referrerpolicy
A good proposal, I'll get something done for this soon.
I'd like bluemonday to add
referrerpolicy="no-referrer"
to allimg
tags, but I don't see a way to do that with the current API. Maybe we could get an API likeRequireReferrerPolicyOnImages(policy ReferrerPolicy)
?The
referrerpolicy
attribute is experimental but has decent support.