(API) Partial revert of r25742. Escaping all html special characters in the output...
authorDaniel Cannon <amidaniel@users.mediawiki.org>
Tue, 11 Sep 2007 22:47:27 +0000 (22:47 +0000)
committerDaniel Cannon <amidaniel@users.mediawiki.org>
Tue, 11 Sep 2007 22:47:27 +0000 (22:47 +0000)
includes/api/ApiFormatBase.php

index b69ebaf..dec6cd3 100644 (file)
@@ -158,8 +158,6 @@ See <a href='http://www.mediawiki.org/wiki/API'>complete documentation</a>, or
        * This method also replaces any '<' with &lt;
        */
        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('/\&lt;(!--.*?--|.*?)\&gt;/', '<span style="color:blue;">&lt;\1&gt;</span>', $text);