svn: /phpdoc/bg/trunk/reference/strings/functions/ htmlspecialchars-decode.xml

[email protected] (Stanislav Yordanov) Wed, 16 Mar 2016 23:55:22 +0000
Newsgroups php.doc.bg
Message-ID <[email protected]>
stanprog                                 Wed, 16 Mar 2016 23:55:22 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=338761

Log:
sync to EN

Changed paths:
    U   phpdoc/bg/trunk/reference/strings/functions/htmlspecialchars-decode.xml

Modified: phpdoc/bg/trunk/reference/strings/functions/htmlspecialchars-decode.xml
===================================================================
--- phpdoc/bg/trunk/reference/strings/functions/htmlspecialchars-decode.xml	2016-03-16 23:48:00 UTC (rev 338760)
+++ phpdoc/bg/trunk/reference/strings/functions/htmlspecialchars-decode.xml	2016-03-16 23:55:22 UTC (rev 338761)
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="utf-8"?>
 <!-- $Revision$ -->
-<!-- EN-Revision: n/a Maintainer: stanprog Status: ready -->
+<!-- EN-Revision: 323269 Maintainer: stanprog Status: ready -->
 <refentry xmlns="http://docbook.org/ns/docbook" xml:id="function.htmlspecialchars-decode">
  <refnamediv>
   <refname>htmlspecialchars_decode</refname>
@@ -13,7 +13,7 @@
   <methodsynopsis>
    <type>string</type><methodname>htmlspecialchars_decode</methodname>
    <methodparam><type>string</type><parameter>string</parameter></methodparam>
-   <methodparam choice="opt"><type>int</type><parameter>quote_style</parameter><initializer>ENT_COMPAT</initializer></methodparam>
+   <methodparam choice="opt"><type>int</type><parameter>flags</parameter><initializer>ENT_COMPAT | ENT_HTML401</initializer></methodparam>
   </methodsynopsis>

   <para>
@@ -22,8 +22,8 @@
   </para>
   <para>
    Единицте, които се преобразуват са: <literal>&amp;amp;</literal>,
-   <literal>&amp;quot;</literal> (когато ENT_NOQUOTES не е установено)),
-   <literal>&amp;#039;</literal> (когато ENT_QUOTES е установено),
+   <literal>&amp;quot;</literal> (когато <constant>ENT_NOQUOTES</constant> не е установено)),
+   <literal>&amp;#039;</literal> (когато <constant>ENT_QUOTES</constant> е установено),
    <literal>&amp;lt;</literal> и <literal>&amp;gt;</literal>.
   </para>
  </refsect1>
@@ -36,17 +36,18 @@
      <term><parameter>string</parameter></term>
      <listitem>
       <para>
-       Низът, който да се преобразува
+       Низът, който да се преобразува.
       </para>
      </listitem>
     </varlistentry>
     <varlistentry>
-     <term><parameter>quote_style</parameter></term>
+     <term><parameter>flags</parameter></term>
      <listitem>
       <para>
-       Стил на кавичките. Може да приеме стойността на една от следните константи:
+       Побитова маска на един или повече от флаговете по-долу, които указват как да се обработват кавичките и
+       какъв тип на документа да се използва. Стойността по подразбиране е <literal>ENT_COMPAT | ENT_HTML401</literal>.
        <table>
-        <title>quote_style constants</title>
+        <title>Налични константи за <parameter>flags</parameter></title>
         <tgroup cols="2">
          <thead>
           <row>
@@ -57,17 +58,40 @@
          <tbody>
           <row>
            <entry><constant>ENT_COMPAT</constant></entry>
-           <entry>Преобразува двойните кавички, и пропуска единичните
-            (по подразбиране)</entry>
+           <entry>Преобразува двойните кавички и пропуска единичните.</entry>
           </row>
           <row>
            <entry><constant>ENT_QUOTES</constant></entry>
-           <entry>Преобразува и двойните и единичните кавички</entry>
+           <entry>Преобразува двойните и единичните кавички</entry>
           </row>
           <row>
            <entry><constant>ENT_NOQUOTES</constant></entry>
            <entry>Не преобразува нито двойните, нито единичните кавички</entry>
           </row>
+          <row>
+           <entry><constant>ENT_HTML401</constant></entry>
+           <entry>
+            Обработва кода като HTML 4.01.
+           </entry>
+          </row>
+          <row>
+           <entry><constant>ENT_XML1</constant></entry>
+           <entry>
+            Обработва кода като XML 1.
+           </entry>
+          </row>
+          <row>
+           <entry><constant>ENT_XHTML</constant></entry>
+           <entry>
+            Обработва кода като XHTML.
+           </entry>
+          </row>
+          <row>
+           <entry><constant>ENT_HTML5</constant></entry>
+           <entry>
+            Обработва кода като HTML 5.
+           </entry>
+          </row>
          </tbody>
         </tgroup>
        </table>
@@ -85,6 +109,31 @@
   </para>
  </refsect1>

+ <refsect1 role="changelog">
+  &reftitle.changelog;
+   <para>
+    <informaltable>
+     <tgroup cols="2">
+      <thead>
+       <row>
+        <entry>&Version;</entry>
+        <entry>&Description;</entry>
+       </row>
+      </thead>
+      <tbody>
+       <row>
+        <entry>5.4.0</entry>
+        <entry>
+         Добавени са константите <constant>ENT_HTML401</constant>, <constant>ENT_XML1</constant>,
+         <constant>ENT_XHTML</constant> и <constant>ENT_HTML5</constant>.
+        </entry>
+       </row>
+      </tbody>
+     </tgroup>
+    </informaltable>
+   </para>
+ </refsect1>
+
  <refsect1 role="examples">
   &reftitle.examples;
   <para>