]>
Commit | Line | Data |
---|---|---|
d4949327 NL |
1 | URI.SafeIframeRegexp\r |
2 | TYPE: string/null\r | |
3 | VERSION: 4.4.0\r | |
4 | DEFAULT: NULL\r | |
5 | --DESCRIPTION--\r | |
6 | <p>\r | |
7 | A PCRE regular expression that will be matched against an iframe URI. This is\r | |
8 | a relatively inflexible scheme, but works well enough for the most common\r | |
9 | use-case of iframes: embedded video. This directive only has an effect if\r | |
10 | %HTML.SafeIframe is enabled. Here are some example values:\r | |
11 | </p>\r | |
12 | <ul>\r | |
13 | <li><code>%^http://www.youtube.com/embed/%</code> - Allow YouTube videos</li>\r | |
14 | <li><code>%^http://player.vimeo.com/video/%</code> - Allow Vimeo videos</li>\r | |
15 | <li><code>%^http://(www.youtube.com/embed/|player.vimeo.com/video/)%</code> - Allow both</li>\r | |
16 | </ul>\r | |
17 | <p>\r | |
18 | Note that this directive does not give you enough granularity to, say, disable\r | |
19 | all <code>autoplay</code> videos. Pipe up on the HTML Purifier forums if this\r | |
20 | is a capability you want.\r | |
21 | </p>\r | |
22 | --# vim: et sw=4 sts=4\r |