summaryrefslogtreecommitdiffstats
path: root/user_guide/general
diff options
context:
space:
mode:
authorkenjis <kenji@codeigniter.jp>2011-08-25 03:51:44 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-10-28 16:08:00 +0200
commit55027807e4826dfe722598172ab7ffbd9dc0b48c (patch)
treefd9e3c4b10f34c02688cead2825920960fecaff7 /user_guide/general
parent426ff851c2164651228a9a9bc10869301b19dbcc (diff)
add html_escape() function to escape HTML.
Diffstat (limited to 'user_guide/general')
-rw-r--r--user_guide/general/common_functions.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/user_guide/general/common_functions.html b/user_guide/general/common_functions.html
index 2751133bb..f290521a9 100644
--- a/user_guide/general/common_functions.html
+++ b/user_guide/general/common_functions.html
@@ -104,6 +104,8 @@ else<br />
<p>This function prevents inserting null characters between ascii characters, like Java\0script.</p>
+<h2>html_escape(<var>$mixed</var>)</h2>
+<p>This function provides short cut for htmlspecialchars() function. It accepts string and array. To prevent Cross Site Scripting (XSS), it is very useful.</p>
</div>