1
0
Fork 0
forked from 0x2620/oxjs

allow iframes

This commit is contained in:
j 2013-10-24 16:39:26 +00:00
commit e6eb5ea1c7
2 changed files with 21 additions and 0 deletions

View file

@ -13,6 +13,8 @@
'table', 'tbody', 'td', 'tfoot', 'th', 'thead', 'tr',
// other
'a', 'br', 'img', 'figure', 'figcaption',
//
'iframe',
// special
'rtl', '[]'
],
@ -43,6 +45,20 @@
'<img src="{1}">'
]
],
iframe: [
[
/<iframe [^<>]*?width="(\d+)" height="(\d+)"[^<>]*?src="((\/|https?:\/\/).+?)".*?>/gi,
'<iframe width="{1}" height="{2}" src="{3}">'
],
[
/<iframe [^<>]*?src="((\/|https?:\/\/).+?)".*?>/gi,
'<iframe src="{1}">'
],
[
/<\/iframe>/gi,
'</iframe>'
]
],
rtl: [
[
/<rtl>/gi,