* 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 - "
* U+2663 - ♣ -- black club suit = shamrock
* U+2665 - ♥ -- black heart suit = valentine
* U+2666 - ♦ -- black diamond suit
+ * </pre>
*
* @copyright (c) 2004 The SquirrelMail development team
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
* 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
*/
*
* @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
*/