diff options
author | friendica <info@friendica.com> | 2014-02-10 01:11:59 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-02-10 01:11:59 -0800 |
commit | a76c53657bca9ea6aa2246535f117f7043bb5205 (patch) | |
tree | a7acd8cf0a535fc9ec52458e105263d4a20dba90 /include | |
parent | eb96a04d345fcb9abc489578573cb54a11f5a41c (diff) | |
download | volse-hubzilla-a76c53657bca9ea6aa2246535f117f7043bb5205.tar.gz volse-hubzilla-a76c53657bca9ea6aa2246535f117f7043bb5205.tar.bz2 volse-hubzilla-a76c53657bca9ea6aa2246535f117f7043bb5205.zip |
don't add bookmark tags to naked links inside code blocks
Diffstat (limited to 'include')
-rwxr-xr-x | include/items.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/items.php b/include/items.php index c69ac2c84..d78792839 100755 --- a/include/items.php +++ b/include/items.php @@ -179,6 +179,15 @@ function red_escape_zrl_callback($matches) { return '[' . $matches[1] . 'rl' . $matches[2] . ']' . $matches[3] . '"' . $matches[4] . '"' . $matches[5] . '[/' . $matches[6] . 'rl]'; } +function red_escape_codeblock($m) { + return '[code]' . base64_encode($m[1]) . '[/code]'; +} + +function red_unescape_codeblock($m) { + return '[code]' . base64_decode($m[1]) . '[/code]'; +} + + /** * @function post_activity_item($arr) * |