From 9c1bb5a9ad1441029b70ea0f7b33da0bcfde511b Mon Sep 17 00:00:00 2001 From: Gabriel Wicke Date: Wed, 12 May 2004 13:05:00 +0000 Subject: [PATCH] don't unescape preview text (made things like \<pre\> a plain \ in preview mode). Not sure if this has any side effects (and why it was unescaped in the first place). --- includes/EditPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 2c04c1fdbd..a3d8539a72 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -335,7 +335,7 @@ class EditPage { $previewhead.="

" . wfMsg( "previewconflict" ) . "

\n"; } - $previewtext = wfUnescapeHTML( $this->textbox1 ); + $previewtext = $this->textbox1; $parserOptions = ParserOptions::newFromUser( $wgUser ); $parserOptions->setUseCategoryMagic( false ); -- 2.20.1