aboutsummaryrefslogtreecommitdiffstats
path: root/include/text.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-05-30 18:36:19 -0700
committerzotlabs <mike@macgirvin.com>2017-05-30 18:36:19 -0700
commitbfad624528499e27125fae18799940319fc32c6d (patch)
tree1fa9b03813544e06193d558ed079fe141729b50b /include/text.php
parent062b9ecbf3a3b315097428a6d608376055d4cae5 (diff)
downloadvolse-hubzilla-bfad624528499e27125fae18799940319fc32c6d.tar.gz
volse-hubzilla-bfad624528499e27125fae18799940319fc32c6d.tar.bz2
volse-hubzilla-bfad624528499e27125fae18799940319fc32c6d.zip
re-arrange a few functions
Diffstat (limited to 'include/text.php')
-rw-r--r--include/text.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/text.php b/include/text.php
index 0666a5e0d..1a4cb7ced 100644
--- a/include/text.php
+++ b/include/text.php
@@ -3082,6 +3082,14 @@ function create_table_from_array($table, $arr) {
return $r;
}
+function share_shield($m) {
+ return str_replace($m[1],'!=+=+=!' . base64url_encode($m[1]) . '=+!=+!=',$m[0]);
+}
+
+function share_unshield($m) {
+ $x = str_replace(array('!=+=+=!','=+!=+!='),array('',''),$m[1]);
+ return str_replace($m[1], base64url_decode($x), $m[0]);
+}
function cleanup_bbcode($body) {