diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/bbcode.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index a766b6aea..f4d9bb525 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -957,3 +957,8 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true) { return $Text; } + + +function strip_bbimage($s) { + $Text = preg_replace("/\[[zi]mg(.*?)\](.*?)\[\/[zi]mg\]/ism", '', $Text); +} |