this way it looks better.
authortokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 25 Apr 2004 10:26:56 +0000 (10:26 +0000)
committertokul <tokul@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Sun, 25 Apr 2004 10:26:56 +0000 (10:26 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@7234 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/htmlentities/readme.php
functions/strings.php

index a7abba844bdc1fb7881239c3bb8a43fe08232412..fea2ba2e9f84a7c03fff689054c2ce5fef4ffb85 100644 (file)
@@ -7,8 +7,10 @@
  * sq_get_html_translation_table() and sq_htmlentities(). They are 
  * included in functions/strings.php
  *
+ * <pre>
  * sq_htmlentities uses same syntax as functions available in php 4.1.0
  * sq_get_html_translation_table adds third option that sets charset.
+ * </pre>
  *
  * string sq_htmlentities ( string string [, int quote_style [, string charset]])
  * array sq_get_html_translation_table ( int table [, int quote_style [, string charset]])
  * 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.
- *
+ * <li>a) removes dependency on options available only in php v.4.1+
+ * <li>b) default behavior of htmlentities() is disastrous in non iso-8859-1 environment.
+ * <li>c) provides better control of transformations.
+ * 
+ * <pre>
  * --- Full list of entities (w3.org html4.01 recommendations)
  * 1. regural symbols
  * U+0022 - &quot;
  * U+2663 - &clubs;    -- black club suit = shamrock
  * U+2665 - &hearts;   -- black heart suit = valentine
  * U+2666 - &diams;    -- black diamond suit
+ * </pre>
  *
  * @copyright (c) 2004 The SquirrelMail development team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
index b2758608616049ae8e44d1c9f0e3296e50eb737b..cdf378a14ef9c772edcd964ad7c887e7b90dfad5 100644 (file)
@@ -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
+ *             <ul>
+ *                <li>HTML_ENTITIES - full html entities table defined by charset</li>
+ *                <li>HTML_SPECIALCHARS - html special characters table</li>
+ *             </ul>
  * @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
+ *             <ul>
+ *                <li>ENT_COMPAT - (default) encode double quotes</li>
+ *                <li>ENT_NOQUOTES -  don't encode double or single quotes</li>
+ *                <li>ENT_QUOTES - encode double and single quotes</li>
+ *             </ul>
  * @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
+ *             <ul>
+ *                <li>ENT_COMPAT - (default) encode double quotes</li>
+ *                <li>ENT_NOQUOTES - don't encode double or single quotes</li>
+ *                <li>ENT_QUOTES - encode double and single quotes</li>
+ *             </ul>
  * @param string $charset charset used for encoding. defaults to 'us-ascii', 'auto' uses $default_charset global value.
  * @return string sanitized string
  */