cvs: phpdoc-es /reference/strings/functions htmlspecialchars-decode.xml

From: Date: Tue, 28 Jun 2005 20:57:28 +0000
Subject: cvs: phpdoc-es /reference/strings/functions htmlspecialchars-decode.xml
Groups: php.doc.es 
Request: Send a blank email to doc-es+get-926@lists.php.net to get a copy of this message
javi Tue Jun 28 16:57:28 2005 EDT Added files: /phpdoc-es/reference/strings/functions htmlspecialchars-decode.xml Log: Añadido el archivo a la traduccion http://cvs.php.net/co.php/phpdoc-es/reference/strings/functions/htmlspecialchars-decode.xml?r=1.1&p=1 Index: phpdoc-es/reference/strings/functions/htmlspecialchars-decode.xml +++ phpdoc-es/reference/strings/functions/htmlspecialchars-decode.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision$ --> <!-- EN-Revision: 1.2 Maintainer: javi Status: ready --> <refentry id="function.htmlspecialchars-decode"> <refnamediv> <refname>htmlspecialchars_decode</refname> <refpurpose> Convierte entidades HTML a caracteres normales </refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>string</type><methodname>htmlspecialchars_decode</methodname> <methodparam><type>string</type><parameter>cadena</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>quote_style</parameter></methodparam> </methodsynopsis> <para> Esta funci&oacute;n es la complementaria de la funci&oacute;n <function>htmlspecialchars</function>. Convierte entidades HTML a caracteres normales. </para> <para> Las entidades que se convierten son: <literal>&amp;amp;</literal>, <literal>&amp;quot;</literal> (cuando no se utiliza ENT_NOQUOTES), <literal>&amp;#039;</literal> (cuando se utiliza ENT_QUOTES), <literal>&amp;lt;</literal> y <literal>&amp;gt;</literal>. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>cadena</parameter></term> <listitem> <para> La cadena que se descodifica. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>quote_style</parameter></term> <listitem> <para> El estilo de escape utilizado. Puede ser uno de los siguientes valores <table> <title>Constantes de quote_style</title> <tgroup cols="2"> <thead> <row> <entry>Nombre de la constante</entry> <entry>Descripci&oacute;n</entry> </row> </thead> <tbody> <row> <entry><constant>ENT_COMPAT</constant></entry> <entry>Convierte las comillas dobles y deja igual las comillas simples (es el valor por defecto)</entry> </row> <row> <entry><constant>ENT_QUOTES</constant></entry> <entry>Convierte tanto las comillas dobles como las simples</entry> </row> <row> <entry><constant>ENT_NOQUOTES</constant></entry> <entry>No convierte ni las comillas dobles ni las simples</entry> </row> </tbody> </tgroup> </table> </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Devuelve la cadena descodificada. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Ejemplo de <function>htmlspecialchars_decode</function></title> <programlisting role="php"> <![CDATA[ <?php $cadena = '<p>esto -&gt; &quot;</p>'; echo htmlspecialchars_decode($cadena); // en este caso, las comillas no se convierten echo htmlspecialchars_decode($cadena, ENT_NOQUOTES); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ <p>esto -> "</p> <p>esto -> &quot;</p> ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>htmlspecialchars</function></member> <member><function>html_entity_decode</function></member> <member><function>get_html_translation_table</function></member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->

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