0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-01-03 05:11:52 +00:00

Add UTF-8 encoding declaration to htmlspecialchars.

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@251 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang 2006-08-14 13:08:59 +00:00
parent 8c1a4c63ba
commit ebf0da9b78

View File

@ -33,7 +33,7 @@ echo $pure_html;
<p>Here is the source code of the purified HTML:</p>
<pre><?php
echo htmlspecialchars($pure_html);
echo htmlspecialchars($pure_html, ENT_COMPAT, 'UTF-8');
?></pre>
<?php
@ -53,7 +53,7 @@ will filter it.</p>
<legend>HTML</legend>
<textarea name="html" cols="60" rows="15"><?php
if (isset($html)) echo htmlspecialchars($html);
if (isset($html)) echo htmlspecialchars($html, ENT_COMPAT, 'UTF-8');
?></textarea>
<div>