strip images from directory text entries

This commit is contained in:
redmatrix
2015-05-30 15:03:44 -07:00
parent 3a9139f76e
commit edd228decb
4 changed files with 823 additions and 757 deletions

View File

@@ -954,3 +954,8 @@ function bbcode($Text, $preserve_nl = false, $tryoembed = true) {
return $Text;
}
function strip_bbimage($s) {
$Text = preg_replace("/\[[zi]mg(.*?)\](.*?)\[\/[zi]mg\]/ism", '', $Text);
}