From 0bcbcc3b5a3240610655cb3d3c5c46bafdc37c13 Mon Sep 17 00:00:00 2001 From: friendica Date: Thu, 6 Dec 2012 16:12:45 -0800 Subject: use consistent quote encoding --- include/text.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/text.php') diff --git a/include/text.php b/include/text.php index b97b21981..fcfadec96 100644 --- a/include/text.php +++ b/include/text.php @@ -70,7 +70,7 @@ function notags($string) { if(! function_exists('escape_tags')) { function escape_tags($string) { - return(htmlspecialchars($string, ENT_QUOTES, 'UTF-8', false)); + return(htmlspecialchars($string, ENT_COMPAT, 'UTF-8', false)); }} @@ -963,7 +963,7 @@ function prepare_body($item,$attach = false) { foreach($terms as $t) { if(strlen($x)) $x .= ','; - $x .= htmlspecialchars($t['term'],ENT_QUOTES,'UTF-8') + $x .= htmlspecialchars($t['term'],ENT_COMPAT,'UTF-8') . ((local_user() == $item['uid']) ? ' ' . t('[remove]') . '' : ''); } if(strlen($x)) @@ -978,7 +978,7 @@ function prepare_body($item,$attach = false) { foreach($terms as $t) { if(strlen($x)) $x .= '   '; - $x .= htmlspecialchars($t['term'],ENT_QUOTES,'UTF-8') + $x .= htmlspecialchars($t['term'],ENT_COMPAT,'UTF-8') . ' ' . t('[remove]') . ''; } if(strlen($x) && (local_user() == $item['uid'])) -- cgit v1.2.3