From 7636b1194d6506c9856987d8ed4b1c4eaff63f95 Mon Sep 17 00:00:00 2001 From: gustav_delius Date: Tue, 22 Jun 2004 07:38:05 +0000 Subject: [PATCH] don't replace smilies in plain text format --- lang/en/help/textformat.html | 2 +- lib/weblib.php | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/lang/en/help/textformat.html b/lang/en/help/textformat.html index e51e1bc888..463eb6ae14 100644 --- a/lang/en/help/textformat.html +++ b/lang/en/help/textformat.html @@ -48,7 +48,7 @@

This format is useful when you need to include lots of code or HTML that you want to be displayed exactly as you wrote it. -

It still translates smilies and new lines, but otherwise your +

It still translates spaces and new lines, but otherwise your text isn't touched. diff --git a/lib/weblib.php b/lib/weblib.php index 51aeb34c6d..b77fc60326 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -596,7 +596,6 @@ function format_text($text, $format=FORMAT_MOODLE, $options=NULL, $courseid=NULL $text = htmlentities($text); $text = rebuildnolinktag($text); $text = str_replace(" ", "  ", $text); - replace_smilies($text); $text = nl2br($text); break; -- 2.39.5