cvs: phpdoc-es /reference/strings/functions get-html-translation-table.xml
| From: | Javier Eguiluz | 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ón de
los modos disponibles se encuentra en la funció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>&quot;</literal>, <literal>&#34;</literal> o
+ <literal>&#x22</literal>. La función
<function>get_html_translation_table</function>
+ devuelve solamente la forma más común de codificación.
+ </para>
+ </note>
<para>
<example>
<title>Ejemplo de Tabla de Traducción</title>
@@ -50,25 +59,8 @@
<literal>"Hallo &amp; &lt;Frau&gt; &amp;
Kr&auml;mer".</literal>
</para>
<para>
- Otro uso interesante de esta función es cuando se combina con la función
<function>array_flip</function>
- para cambiar la dirección de la traducción.
- <informalexample>
- <programlisting role="php">
-<![CDATA[
-<?php
-$tabla = array_flip($tabla);
-$original = strtr($codificada, $tabla);
-?>
-]]>
- </programlisting>
- </informalexample>
- El contenido de <literal>$original</literal> sería: "Hallo
&
- <Frau> & Krämer".
- </para>
- <para>
- Vea también: <function>htmlspecialchars</function>,
- <function>htmlentities</function>, <function>strtr</function>
- y <function>array_flip</function>.
+ Vea también: <function>htmlspecialchars</function>,
+ <function>htmlentities</function> y
<function>html_entity_decode</function>.
</para>
</refsect1>
</refentry>