Hello again,
In strip_tags there is a note that says:
---
This parameter should not contain whitespace. strip_tags sees a tag as a
case-insensitive string between /</ and the first whitespace or />/. It
means that /strip_tags("<br/>", "<br>")/ returns an empty string.
---
The given code, obviously, will not return an empty string. Probably
someone forgot to add an example whitespace to the code. I updated the
second parameter in the example from <br> to <br >.
Cheers,
Adam
Index: en/reference/strings/functions/strip-tags.xml
===================================================================
--- en/reference/strings/functions/strip-tags.xml (revision 330498)
+++ en/reference/strings/functions/strip-tags.xml (working copy)
@@ -51,7 +51,7 @@
<function>strip_tags</function> sees a tag as a case-insensitive
string between <literal><</literal> and the first whitespace or
<literal>></literal>. It means that
- <literal>strip_tags("<br/>", "<br>")</literal> returns an
+ <literal>strip_tags("<br/>", "<br >")</literal> returns an
empty string.
</para>
</note>