From 9296d178b3696a0cf408d006b7fb9832a3344dcb Mon Sep 17 00:00:00 2001 From: Friendika Date: Thu, 30 Dec 2010 18:32:49 -0800 Subject: html5 video/audio support - still needs multiple source selection, and check that it isn't blocked by html purifier --- include/bbcode.php | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/bbcode.php') diff --git a/include/bbcode.php b/include/bbcode.php index 7e901bd41..646401ddb 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -77,6 +77,13 @@ function bbcode($Text) { // Images // [img]pathtoimage[/img] $Text = preg_replace("/\[img\](.+?)\[\/img\]/", '', $Text); + + // html5 video and audio + + $Text = preg_replace("/\[video\](.+?)\[\/video\]/", '', $Text); + + $Text = preg_replace("/\[audio\](.+?)\[\/audio\]/", '', $Text); + // [img=widthxheight]image source[/img] $Text = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.+?)\[\/img\]/", '', $Text); -- cgit v1.2.3