From 70710a6bb85e3d543b600a4ea8b6692c51c90e86 Mon Sep 17 00:00:00 2001 From: Daniel Cannon Date: Tue, 11 Sep 2007 22:47:27 +0000 Subject: [PATCH] (API) Partial revert of r25742. Escaping all html special characters in the output breaks links that have these special characters in them. --- includes/api/ApiFormatBase.php | 2 -- 1 file changed, 2 deletions(-) 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); -- 2.20.1