cvs: phpdoc-es /reference/strings/functions get-html-translation-table.xml

From: Date: Thu, 04 Aug 2005 11:23:37 +0000
Subject: cvs: phpdoc-es /reference/strings/functions get-html-translation-table.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-1180@lists.php.net to get a copy of this message
javi Thu Aug 4 07:23:37 2005 EDT Modified files: /phpdoc-es/reference/strings/functions get-html-translation-table.xml Log: - Añadida una nota y eliminado un parrafo en la explicacion del ejemplo. - Actualizada la seccion "See also" http://cvs.php.net/diff.php/phpdoc-es/reference/strings/functions/get-html-translation-table.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-es/reference/strings/functions/get-html-translation-table.xml diff -u phpdoc-es/reference/strings/functions/get-html-translation-table.xml:1.3 phpdoc-es/reference/strings/functions/get-html-translation-table.xml:1.4 --- phpdoc-es/reference/strings/functions/get-html-translation-table.xml:1.3 Tue Jun 28 15:57:40 2005 +++ phpdoc-es/reference/strings/functions/get-html-translation-table.xml Thu Aug 4 07:23:35 2005 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.7 Maintainer: javi Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.8 Maintainer: javi Status: ready --> <!-- splitted from ./en/functions/strings.xml, last change in rev 1.2 --> <refentry id="function.get-html-translation-table"> <refnamediv> @@ -33,6 +33,15 @@ Su valor por defecto es <constant>ENT_COMPAT</constant>. La descripci&oacute;n de los modos disponibles se encuentra en la funci&oacute;n <function>htmlspecialchars</function>. </para> + <note> + <para> + Los caracteres especiales se pueden codificar de diferentes formas. + Por ejemplo, <literal>"</literal> se puede codificar como + <literal>&amp;quot;</literal>, <literal>&amp;#34;</literal> o + <literal>&amp;#x22</literal>. La funci&oacute;n <function>get_html_translation_table</function> + devuelve solamente la forma m&aacute;s com&uacute;n de codificaci&oacute;n. + </para> + </note> <para> <example> <title>Ejemplo de Tabla de Traducci&oacute;n</title> @@ -50,25 +59,8 @@ <literal>"Hallo &amp;amp; &amp;lt;Frau&amp;gt; &amp;amp; Kr&amp;auml;mer".</literal> </para> <para> - Otro uso interesante de esta funci&oacute;n es cuando se combina con la funci&oacute;n <function>array_flip</function> - para cambiar la direcci&oacute;n de la traducci&oacute;n. - <informalexample> - <programlisting role="php"> -<![CDATA[ -<?php -$tabla = array_flip($tabla); -$original = strtr($codificada, $tabla); -?> -]]> - </programlisting> - </informalexample> - El contenido de <literal>$original</literal> ser&iacute;a: "Hallo &amp; - &lt;Frau> &amp; Kr&auml;mer". - </para> - <para> - Vea tambi&eacute;n: <function>htmlspecialchars</function>, - <function>htmlentities</function>, <function>strtr</function> - y <function>array_flip</function>. + Vea tambi&eacute;n: <function>htmlspecialchars</function>, + <function>htmlentities</function> y <function>html_entity_decode</function>. </para> </refsect1> </refentry>

« previous php.doc.es (#1180) next »