diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-05-30 15:03:44 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-05-30 15:03:44 -0700 |
commit | edd228decb5ef4c3ffa2a8be00983937680a56c2 (patch) | |
tree | a0fc19150c1cb5fce8ea51039d189351228fa277 /include | |
parent | 3a9139f76ee64b49c7902269cb3d98f6a6e20230 (diff) | |
download | volse-hubzilla-edd228decb5ef4c3ffa2a8be00983937680a56c2.tar.gz volse-hubzilla-edd228decb5ef4c3ffa2a8be00983937680a56c2.tar.bz2 volse-hubzilla-edd228decb5ef4c3ffa2a8be00983937680a56c2.zip |
strip images from directory text entries
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 1f5a65399..9ec5ce22f 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -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); +}
\ No newline at end of file |