Przeglądaj źródła

this way it looks better.

tokul 21 lat temu
rodzic
commit
22a39f04e3
2 zmienionych plików z 22 dodań i 12 usunięć
  1. 8 4
      functions/htmlentities/readme.php
  2. 14 8
      functions/strings.php

+ 8 - 4
functions/htmlentities/readme.php

@@ -7,8 +7,10 @@
  * sq_get_html_translation_table() and sq_htmlentities(). They are 
  * sq_get_html_translation_table() and sq_htmlentities(). They are 
  * included in functions/strings.php
  * included in functions/strings.php
  *
  *
+ * <pre>
  * sq_htmlentities uses same syntax as functions available in php 4.1.0
  * sq_htmlentities uses same syntax as functions available in php 4.1.0
  * sq_get_html_translation_table adds third option that sets charset.
  * sq_get_html_translation_table adds third option that sets charset.
+ * </pre>
  *
  *
  * string sq_htmlentities ( string string [, int quote_style [, string charset]])
  * string sq_htmlentities ( string string [, int quote_style [, string charset]])
  * array sq_get_html_translation_table ( int table [, 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 
  * Why own functions are used instead of htmlspecialchars() and 
  * htmlentities() provided by php.
  * 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)
  * --- Full list of entities (w3.org html4.01 recommendations)
  * 1. regural symbols
  * 1. regural symbols
  * U+0022 - &quot;
  * U+0022 - &quot;
@@ -307,6 +310,7 @@
  * U+2663 - &clubs;    -- black club suit = shamrock
  * U+2663 - &clubs;    -- black club suit = shamrock
  * U+2665 - &hearts;   -- black heart suit = valentine
  * U+2665 - &hearts;   -- black heart suit = valentine
  * U+2666 - &diams;    -- black diamond suit
  * U+2666 - &diams;    -- black diamond suit
+ * </pre>
  *
  *
  * @copyright (c) 2004 The SquirrelMail development team
  * @copyright (c) 2004 The SquirrelMail development team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License

+ 14 - 8
functions/strings.php

@@ -582,12 +582,16 @@ function sq_fwrite($fp, $string) {
  * Returns the translation table used by sq_htmlentities()
  * Returns the translation table used by sq_htmlentities()
  *
  *
  * @param integer $table html translation table. Possible values (without quotes):
  * @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):
  * @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.
  * @param string $charset charset used for encoding. default to us-ascii, 'auto' uses $default_charset global value.
  * @return array html translation array
  * @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 string $string string that has to be sanitized
  * @param integer $quote_style quote encoding style. Possible values (without quotes):
  * @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.
  * @param string $charset charset used for encoding. defaults to 'us-ascii', 'auto' uses $default_charset global value.
  * @return string sanitized string
  * @return string sanitized string
  */
  */