This commit is contained in:
Friendika 2011-06-15 03:41:28 -07:00
parent cee63c7a0d
commit 7601ce7de7
2 changed files with 3 additions and 0 deletions

View file

@ -35,6 +35,7 @@ function html2bbcode($s) {
'/\<blockquote\>(.*?)\<\/blockquote\>/is',
'/\<video(.*?) src=\"(.*?)\" (.*?)\>(.*?)\<\/video\>/is',
'/\<audio(.*?) src=\"(.*?)\" (.*?)\>(.*?)\<\/audio\>/is',
'/\<iframe(.*?) src=\"(.*?)\" (.*?)\>(.*?)\<\/iframe\>/is',
);
@ -60,6 +61,7 @@ function html2bbcode($s) {
'[quote]$1[/quote]',
'[video]$1[/video]',
'[audio]$1[/audio]',
'[iframe]$1[/iframe]',
);
// Replace $htmltags in $text with $bbtags