diff options
Diffstat (limited to 'include/items.php')
-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) * |