From c0dcedcafc9882c12bde1d39ebbefdfdd9aa51dd Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Mon, 20 Sep 1999 15:50:56 +0000 Subject: 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. --- ext/standard/php3_string.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/standard/php3_string.h') 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); -- cgit v1.2.1