From: moodler Date: Tue, 10 Aug 2004 02:27:15 +0000 (+0000) Subject: Added guideline for format_text. Fixes bug 1722 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5e6775e093bf3b5cdc5f6883bb05826c7a96a197;p=moodle.git Added guideline for format_text. Fixes bug 1722 --- diff --git a/lang/en/docs/coding.html b/lang/en/docs/coding.html index 38b4be4187..fd4c8bda86 100755 --- a/lang/en/docs/coding.html +++ b/lang/en/docs/coding.html @@ -43,6 +43,9 @@ has magic_quotes applied (regardless of the PHP settings) so that you can safely insert it straight into the database. All other raw data (from files, or from databases) must be escaped with addslashes() before inserting it into the database. +
  • IMPORTANT: All texts within Moodle, especially those that have + come from users, should be printed using the format_text() function. This ensures that + text is filtered and cleaned correctly.
  •  

    Coding Style