aboutsummaryrefslogtreecommitdiffstats
path: root/include/items.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-22 16:19:08 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-22 16:19:08 -0700
commitc2dcc6880302406de6e1abf90c985975e8a4f13a (patch)
treeef34ba94bdab44935ae10b371c91aa6af9eb521c /include/items.php
parent5068ce05693d3bb52e049156eb7900cbe55ff650 (diff)
downloadvolse-hubzilla-c2dcc6880302406de6e1abf90c985975e8a4f13a.tar.gz
volse-hubzilla-c2dcc6880302406de6e1abf90c985975e8a4f13a.tar.bz2
volse-hubzilla-c2dcc6880302406de6e1abf90c985975e8a4f13a.zip
backport item sync
Diffstat (limited to 'include/items.php')
-rwxr-xr-xinclude/items.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php
index 3669628b4..86da7941f 100755
--- a/include/items.php
+++ b/include/items.php
@@ -805,10 +805,14 @@ function title_is_body($title, $body) {
}
-function get_item_elements($x) {
+function get_item_elements($x,$allow_code = false) {
$arr = array();
- $arr['body'] = (($x['body']) ? htmlspecialchars($x['body'],ENT_COMPAT,'UTF-8',false) : '');
+
+ if($allow_code)
+ $arr['body'] = $x['body'];
+ else
+ $arr['body'] = (($x['body']) ? htmlspecialchars($x['body'],ENT_COMPAT,'UTF-8',false) : '');
$key = get_config('system','pubkey');