From: Daniel Cannon Date: Tue, 11 Sep 2007 22:47:27 +0000 (+0000) Subject: (API) Partial revert of r25742. Escaping all html special characters in the output... X-Git-Tag: 1.31.0-rc.0~51408 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=70710a6bb85e3d543b600a4ea8b6692c51c90e86;p=lhc%2Fweb%2Fwiklou.git (API) Partial revert of r25742. Escaping all html special characters in the output breaks links that have these special characters in them. --- diff --git a/includes/api/ApiFormatBase.php b/includes/api/ApiFormatBase.php index b69ebafe09..dec6cd37d5 100644 --- a/includes/api/ApiFormatBase.php +++ b/includes/api/ApiFormatBase.php @@ -158,8 +158,6 @@ See complete documentation, or * This method also replaces any '<' with < */ protected function formatHTML($text) { - // Escape everything first for full coverage - $text = htmlspecialchars($text); // encode all comments or tags as safe blue strings $text = preg_replace('/\<(!--.*?--|.*?)\>/', '<\1>', $text);