]> git.mjollnir.org Git - moodle.git/commitdiff
Added guideline for format_text. Fixes bug 1722
authormoodler <moodler>
Tue, 10 Aug 2004 02:27:15 +0000 (02:27 +0000)
committermoodler <moodler>
Tue, 10 Aug 2004 02:27:15 +0000 (02:27 +0000)
lang/en/docs/coding.html

index 38b4be41875907234ef83419e38e51fe10400790..fd4c8bda8608c71e8a4f4702f7d0507c1d924cad 100755 (executable)
@@ -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 <font color="#339900">addslashes()</font> before inserting it into the database.</li>
+  <li class="spaced">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.</li>
 </ol>
 <p>&nbsp;</p>
 <h2>Coding Style</h2>