Mailinglisten-Archive |
Werner Stuerenburg wrote:
> > Die Funktion scheint irgendwie mit 3.0.7 dazu gekommen zu sein.
>
> ist in 3.0.7 noch nicht drin - fährt nämlich mein Host.
>
Stimmt. Es ist die 3.0.8, sagt das CVS:
kk_(at)_wwwx ~/Source/php3/functions $ cvs diff -u -r php_3_0_7 -r php_3_0_8 string.c
[ ... ]
+/* {{{ proto string strip_tags(string str)
+ Strips HTML and PHP tags from a string */
+void php3_strip_tags(INTERNAL_FUNCTION_PARAMETERS)
+{
+ char *buf;
+ pval *str;
+
+ if (ARG_COUNT(ht)!=1 || getParameters(ht, 1, &str)==FAILURE) {
+ WRONG_PARAM_COUNT;
+ }
+ convert_to_string(str);
+ buf=estrdup(str->value.str.val);
+ _php3_strip_tags(buf,0);
+ RETURN_STRING(buf,0);
+}
+/* }}} */
+
+
[ ... ]
Kristian
--
Kristian Köhntopp, NetUSE Kommunikationstechnologie GmbH
Siemenswall, D-24107 Kiel, Germany, +49 431 386 436 00
Using PHP3? See our web development library at
http://phplib.netuse.de/ (We have moved! Update your bookmarks!)
php::bar PHP Wiki - Listenarchive