svn: /phpdoc/bg/trunk/reference/strings/functions/ htmlspecialchars.xml
| From: | Stanislav Yordanov | Date: | Mon, 27 Jun 2016 23:00:48 +0000 |
| Subject: | svn: /phpdoc/bg/trunk/reference/strings/functions/ htmlspecialchars.xml | ||
| Groups: | php.doc.bg | ||
| Request: | Send a blank email to doc-bg+get-3052@lists.php.net to get a copy of this message | ||
stanprog Mon, 27 Jun 2016 23:00:48 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=339510
Log:
sync with EN
Changed paths:
U phpdoc/bg/trunk/reference/strings/functions/htmlspecialchars.xml
Modified: phpdoc/bg/trunk/reference/strings/functions/htmlspecialchars.xml
===================================================================
--- phpdoc/bg/trunk/reference/strings/functions/htmlspecialchars.xml 2016-06-27 14:14:18 UTC (rev
339509)
+++ phpdoc/bg/trunk/reference/strings/functions/htmlspecialchars.xml 2016-06-27 23:00:48 UTC (rev
339510)
@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
-<!-- EN-Revision: 334627 Maintainer: stanprog Status: ready -->
+<!-- EN-Revision: 339500 Maintainer: stanprog Status: ready -->
+<!-- Reviewed: no Maintainer: stanprog -->
<refentry xmlns="http://docbook.org/ns/docbook"
xml:id="function.htmlspecialchars" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>htmlspecialchars</refname>
@@ -35,36 +36,44 @@
Вместо нея ще трябва да използвате функция
<function>mb_encode_numericentity</function>.
</para>
<para>
- Поддържаните преобразувания са:
- <itemizedlist>
- <listitem>
- <simpara>
- '&' (амперсанд) се преобразува до
'&amp;'
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- '"' (двойни кавички) се преобразува до
'&quot;' когато <constant>ENT_NOQUOTES</constant>
- не е установен.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- "'" (единични кавички) се преобразува
до '&#039;' (или &apos;)
- само когато <constant>ENT_QUOTES</constant> е установен.
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- '<' (знак "по-малко") се преобразува до
'&lt;'
- </simpara>
- </listitem>
- <listitem>
- <simpara>
- '>' (знак "по-голямо") се преобразува
до '&gt;'
- </simpara>
- </listitem>
- </itemizedlist>
+ <table>
+ <title>Поддържани преобразувания</title>
+ <tgroup cols="2">
+ <thead>
+ <row>
+ <entry>Знак</entry>
+ <entry>Замяна</entry>
+ </row>
+ </thead>
+ <tbody>
+ <row>
+ <entry><literal>&</literal> (амперсанд)</entry>
+ <entry><literal>&amp;</literal></entry>
+ </row>
+ <row>
+ <entry><literal>"</literal> (двойна
кавичка)</entry>
+ <entry><literal>&quot;</literal> при
<constant>ENT_NOQUOTES</constant></entry>
+ </row>
+ <row>
+ <entry><literal>'</literal> (единична
кавичка)</entry>
+ <entry>
+ <literal>&#039;</literal> (за
<constant>ENT_HTML401</constant>) или <literal>&apos;</literal>
(for
+ <constant>ENT_XML1</constant>, <constant>ENT_XHTML</constant>
или
+ <constant>ENT_HTML5</constant>), но само когато е
установена
+ <constant>ENT_QUOTES</constant>
+ </entry>
+ </row>
+ <row>
+ <entry><literal><</literal> (по-малко)</entry>
+ <entry><literal>&lt;</literal></entry>
+ </row>
+ <row>
+ <entry><literal>></literal> (по-голямо)</entry>
+ <entry><literal>&gt;</literal></entry>
+ </row>
+ </tbody>
+ </tgroup>
+ </table>
</para>
</refsect1>