diff options
author | Mario Vavti <mario@mariovavti.com> | 2016-07-18 13:48:09 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2016-07-18 13:48:09 +0200 |
commit | f44ca74e9962dd2ae109c854924840b0adb0fc58 (patch) | |
tree | 2d17d9b02210ae4b7e1196506a3f874f667f2b57 /include | |
parent | 25b2a6e0cf6ba9304bbe074afee0fed466cab506 (diff) | |
download | volse-hubzilla-f44ca74e9962dd2ae109c854924840b0adb0fc58.tar.gz volse-hubzilla-f44ca74e9962dd2ae109c854924840b0adb0fc58.tar.bz2 volse-hubzilla-f44ca74e9962dd2ae109c854924840b0adb0fc58.zip |
do not transform hashes to tags in [code=xxx] or [code] blocks
Diffstat (limited to 'include')
-rw-r--r-- | include/text.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/text.php b/include/text.php index 0b4f039af..d4d151f2e 100644 --- a/include/text.php +++ b/include/text.php @@ -687,7 +687,7 @@ function get_tags($s) { // ignore anything in a code block - $s = preg_replace('/\[code\](.*?)\[\/code\]/sm','',$s); + $s = preg_replace('/\[code(.*?)\](.*?)\[\/code\]/sm','',$s); // ignore anything in [style= ] $s = preg_replace('/\[style=(.*?)\]/sm','',$s); |