Skip to content

Commit 2864e4e

Browse files
author
Yoshinari Takaoka
committed
Document behavior of xmlwriter_text() wrt. special XML characters
git-svn-id: https://svn.php.net/repository/phpdoc/ja/trunk@350612 c90b9560-bf6c-de11-be94-00142212c4b1
1 parent 2428777 commit 2864e4e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

reference/xmlwriter/functions/xmlwriter-text.xml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<!-- $Revision$ -->
3-
<!-- EN-Revision: 0d604bbc9d3b741d53e7fac26f5b24c306751e9a Maintainer: takagi Status: ready -->
3+
<!-- EN-Revision: 9ea98fa2983ad86d94f96d45782f2ea26fb7ba53 Maintainer: takagi Status: ready -->
44
<!-- Generated by xml_proto.php v2.4. Found in /scripts directory of phpdoc. -->
5+
<!-- Credits: mumumu -->
56
<refentry xml:id="function.xmlwriter-text" xmlns="http://docbook.org/ns/docbook">
67
<refnamediv>
78
<refname>XMLWriter::text</refname>
@@ -35,6 +36,13 @@
3536
<listitem>
3637
<para>
3738
テキストの内容。
39+
<literal>&lt;</literal>, <literal>&gt;</literal>,
40+
<literal>&amp;</literal>, <literal>"</literal> は、実体参照として書き込みます。
41+
(つまり、 <literal>&amp;lt;</literal>, <literal>&amp;gt;</literal>,
42+
<literal>&amp;amp;</literal>, <literal>&amp;quot;</literal>, をそれぞれ書き込みます)。
43+
それ以外の文字は、<literal>&apos;</literal> を含めてそのまま書き込みます。
44+
XML で特別な文字や、実体参照をそのまま書き込むには、
45+
<function>xmlwriter_write_raw</function> を使わなければなりません。
3846
</para>
3947
</listitem>
4048
</varlistentry>

0 commit comments

Comments
 (0)