aboutsummaryrefslogtreecommitdiffstats
path: root/include/bbcode.php
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-10-05 17:21:32 -0700
committerredmatrix <mike@macgirvin.com>2016-10-05 17:37:18 -0700
commit3250d7532092608651649d27619f7b245d426d03 (patch)
tree601e0010716fc1801a2a4038e8ce53e91cb9b222 /include/bbcode.php
parent87ee48bd84bc712ebdccd8286f01b8da3e5c3cba (diff)
downloadvolse-hubzilla-3250d7532092608651649d27619f7b245d426d03.tar.gz
volse-hubzilla-3250d7532092608651649d27619f7b245d426d03.tar.bz2
volse-hubzilla-3250d7532092608651649d27619f7b245d426d03.zip
new hook bbcode_filter
Diffstat (limited to 'include/bbcode.php')
-rw-r--r--include/bbcode.php3
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);