Lines Matching refs:allowed_tags

171 	const char *allowed_tags;  member
177 static int php_strip_tags_filter_ctor(php_strip_tags_filter *inst, zend_string *allowed_tags, int p… in php_strip_tags_filter_ctor() argument
179 if (allowed_tags != NULL) { in php_strip_tags_filter_ctor()
180 if (NULL == (inst->allowed_tags = pemalloc(ZSTR_LEN(allowed_tags) + 1, persistent))) { in php_strip_tags_filter_ctor()
183 memcpy((char *)inst->allowed_tags, ZSTR_VAL(allowed_tags), ZSTR_LEN(allowed_tags) + 1); in php_strip_tags_filter_ctor()
184 inst->allowed_tags_len = (int)ZSTR_LEN(allowed_tags); in php_strip_tags_filter_ctor()
186 inst->allowed_tags = NULL; in php_strip_tags_filter_ctor()
196 if (inst->allowed_tags != NULL) { in php_strip_tags_filter_dtor()
197 pefree((void *)inst->allowed_tags, inst->persistent); in php_strip_tags_filter_dtor()
218 …bucket->buflen = php_strip_tags(bucket->buf, bucket->buflen, &(inst->state), inst->allowed_tags, i… in strfilter_strip_tags_filter()
249 zend_string *allowed_tags = NULL; in strfilter_strip_tags_create() local
265 allowed_tags = tags_ss.s; in strfilter_strip_tags_create()
267 allowed_tags = zval_get_string(filterparams); in strfilter_strip_tags_create()
272 if (allowed_tags) { in strfilter_strip_tags_create()
273 zend_string_release(allowed_tags); in strfilter_strip_tags_create()
280 if (php_strip_tags_filter_ctor(inst, allowed_tags, persistent) == SUCCESS) { in strfilter_strip_tags_create()
286 if (allowed_tags) { in strfilter_strip_tags_create()
287 zend_string_release(allowed_tags); in strfilter_strip_tags_create()