mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-23 22:23:12 +02:00
feat: Add option for safe iframe hosts using array lookup (#423)
Co-authored-by: Edward Z. Yang <ezyang@meta.com>
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
URI.SafeIframeHosts
|
||||
TYPE: lookup/null
|
||||
DEFAULT: null
|
||||
--DESCRIPTION--
|
||||
<p>
|
||||
A whitelist which indicates what explicit hosts should be
|
||||
allowed to embed iframe. See also %HTML.SafeIframeRegexp,
|
||||
it has precedence over this config. Here are some example values:
|
||||
</p>
|
||||
<ul>
|
||||
<li><code>www.youtube.com</code> - Allow YouTube videos</li>
|
||||
<li><code>maps.google.com</code> - Allow Embedding a Google map</li>
|
||||
</ul>
|
||||
--# vim: et sw=4 sts=4
|
Reference in New Issue
Block a user