mirror of
https://github.com/moodle/moodle.git
synced 2025-02-02 14:19:07 +01:00
Added guideline for format_text. Fixes bug 1722
This commit is contained in:
parent
cd2bf3309c
commit
5e6775e093
@ -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> </p>
|
||||
<h2>Coding Style</h2>
|
||||
|
Loading…
x
Reference in New Issue
Block a user