From deb22cec433e3555f1331cb4b909bbc4aafd5c6c Mon Sep 17 00:00:00 2001 From: tokul Date: Sun, 25 Apr 2004 10:26:56 +0000 Subject: [PATCH] this way it looks better. git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7234 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/htmlentities/readme.php | 12 ++++++++---- functions/strings.php | 22 ++++++++++++++-------- 2 files changed, 22 insertions(+), 12 deletions(-) diff --git a/functions/htmlentities/readme.php b/functions/htmlentities/readme.php index a7abba84..fea2ba2e 100644 --- a/functions/htmlentities/readme.php +++ b/functions/htmlentities/readme.php @@ -7,8 +7,10 @@ * sq_get_html_translation_table() and sq_htmlentities(). They are * included in functions/strings.php * + *
  * sq_htmlentities uses same syntax as functions available in php 4.1.0
  * sq_get_html_translation_table adds third option that sets charset.
+ * 
* * string sq_htmlentities ( string string [, int quote_style [, string charset]]) * array sq_get_html_translation_table ( int table [, int quote_style [, string charset]]) @@ -21,10 +23,11 @@ * Why own functions are used instead of htmlspecialchars() and * htmlentities() provided by php. * - * a) removes dependency on options available only in php v.4.1+ - * b) default behavior of htmlentities() is disastrous in non iso-8859-1 environment. - * c) provides better control of transformations. - * + *
  • a) removes dependency on options available only in php v.4.1+ + *
  • b) default behavior of htmlentities() is disastrous in non iso-8859-1 environment. + *
  • c) provides better control of transformations. + * + *
      * --- Full list of entities (w3.org html4.01 recommendations)
      * 1. regural symbols
      * U+0022 - "
    @@ -307,6 +310,7 @@
      * U+2663 - ♣    -- black club suit = shamrock
      * U+2665 - ♥   -- black heart suit = valentine
      * U+2666 - ♦    -- black diamond suit
    + * 
    * * @copyright (c) 2004 The SquirrelMail development team * @license http://opensource.org/licenses/gpl-license.php GNU Public License diff --git a/functions/strings.php b/functions/strings.php index b2758608..cdf378a1 100644 --- a/functions/strings.php +++ b/functions/strings.php @@ -582,12 +582,16 @@ function sq_fwrite($fp, $string) { * Returns the translation table used by sq_htmlentities() * * @param integer $table html translation table. Possible values (without quotes): - * HTML_ENTITIES - full html entities table defined by charset - * HTML_SPECIALCHARS - html special characters table + * * @param integer $quote_style quote encoding style. Possible values (without quotes): - * ENT_COMPAT - (default) encode double quotes - * ENT_NOQUOTES - don't encode double or single quotes - * ENT_QUOTES - encode double and single quotes + * * @param string $charset charset used for encoding. default to us-ascii, 'auto' uses $default_charset global value. * @return array html translation array */ @@ -643,9 +647,11 @@ function sq_get_html_translation_table($table,$quote_style=ENT_COMPAT,$charset=' * * @param string $string string that has to be sanitized * @param integer $quote_style quote encoding style. Possible values (without quotes): - * ENT_COMPAT - (default) encode double quotes - * ENT_NOQUOTES - don't encode double or single quotes - * ENT_QUOTES - encode double and single quotes + * * @param string $charset charset used for encoding. defaults to 'us-ascii', 'auto' uses $default_charset global value. * @return string sanitized string */ -- 2.25.1