mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
add warning to strip_tags() about attributes being passed through, add <u> to the example, and clean up the notice of what versions the allowable_tags param was added in.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@61059 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
9cdbabbaca
commit
38dd875b75
1 changed files with 13 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.117 $ -->
|
||||
<!-- $Revision: 1.118 $ -->
|
||||
<reference id="ref.strings">
|
||||
<title>String functions</title>
|
||||
<titleabbrev>Strings</titleabbrev>
|
||||
|
@ -2506,8 +2506,8 @@ if (!strcasecmp($var1, $var2)) {
|
|||
should not be stripped.
|
||||
<note>
|
||||
<para>
|
||||
<parameter>Allowable_tags</parameter> was added in PHP 3.0.13,
|
||||
PHP4B3.
|
||||
<parameter>allowable_tags</parameter> was added in PHP 3.0.13
|
||||
and PHP 4.0b3.
|
||||
</para>
|
||||
</note>
|
||||
</para>
|
||||
|
@ -2515,10 +2515,19 @@ if (!strcasecmp($var1, $var2)) {
|
|||
<example>
|
||||
<title><function>strip_tags</function> example</title>
|
||||
<programlisting role="php">
|
||||
$string = strip_tags($string, '<a><b><i>');
|
||||
$string = strip_tags($string, '<a><b><i><u>');
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<warning>
|
||||
<para>
|
||||
This function does not modify any attributes on the tags that you allow
|
||||
using <parameter>allowable_tags</parameter>, including the
|
||||
<literal>style</literal> and <literal>onmouseover</literal> attributes
|
||||
that a mischievous user may abuse when posting text that will be shown
|
||||
to other users.
|
||||
</para>
|
||||
</warning>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
|
Loading…
Reference in a new issue