diff options
author | Rasmus Lerdorf <rasmus@php.net> | 1999-09-20 15:50:56 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 1999-09-20 15:50:56 +0000 |
commit | c0dcedcafc9882c12bde1d39ebbefdfdd9aa51dd (patch) | |
tree | cd0192368527946a066708d4ca240c8c4df5fa32 /ext/standard/php3_string.h | |
parent | babad2694e7cfbfe079aa71cf2b68675a8d4411f (diff) | |
download | php-git-c0dcedcafc9882c12bde1d39ebbefdfdd9aa51dd.tar.gz |
Added optional allowable_tags arguments to strip_tags() and fgetss() to
allow you to specify a string of tags that are not to be stripped
Could have used flex for this, and Andrew sent me a flex file to do this,
but I could do the same thing with only minor additions to the existing
state machine and the resulting code is much smaller and tighter.
Diffstat (limited to 'ext/standard/php3_string.h')
-rw-r--r-- | ext/standard/php3_string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/php3_string.h b/ext/standard/php3_string.h index 448a49daac..7d8bda4903 100644 --- a/ext/standard/php3_string.h +++ b/ext/standard/php3_string.h @@ -99,7 +99,7 @@ extern PHPAPI char *php3i_stristr(unsigned char *s, unsigned char *t); extern PHPAPI char *_php3_str_to_str(char *haystack, int length, char *needle, int needle_len, char *str, int str_len, int *_new_length); extern PHPAPI void _php3_trim(pval *str, pval *return_value, int mode); -extern PHPAPI void _php3_strip_tags(char *rbuf, int state); +extern PHPAPI void _php3_strip_tags(char *rbuf, int len, int state, char *allow); extern PHPAPI void _php3_char_to_str(char *str, uint len, char from, char *to, int to_len, pval *result); |