diff options
author | redmatrix <mike@macgirvin.com> | 2016-10-05 17:21:32 -0700 |
---|---|---|
committer | redmatrix <mike@macgirvin.com> | 2016-10-05 17:21:32 -0700 |
commit | 21a0498a30f3de1e6236d73d0e8e7619aca86df7 (patch) | |
tree | ccee16eb6da555db524a27b108a31cf0ace66cbb | |
parent | 246b2c0d1b14ce31a695d6d83b177507fb46ed27 (diff) | |
download | volse-hubzilla-21a0498a30f3de1e6236d73d0e8e7619aca86df7.tar.gz volse-hubzilla-21a0498a30f3de1e6236d73d0e8e7619aca86df7.tar.bz2 volse-hubzilla-21a0498a30f3de1e6236d73d0e8e7619aca86df7.zip |
new hook bbcode_filter
-rw-r--r-- | include/bbcode.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/bbcode.php b/include/bbcode.php index 3e942f4a5..6a58475d0 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -516,6 +516,9 @@ function bb_fixtable_lf($match) { function bbcode($Text, $preserve_nl = false, $tryoembed = true, $cache = false) { + + call_hooks('bbcode_filter', $Text); + // Hide all [noparse] contained bbtags by spacefying them if (strpos($Text,'[noparse]') !== false) { $Text = preg_replace_callback("/\[noparse\](.*?)\[\/noparse\]/ism", 'bb_spacefy',$Text); |