(02-12-2018, 07:21 AM)Elias Wrote: (02-12-2018, 06:24 AM)Narf Wrote: Not a bug.
Why? Tags like <b> or <a> not replaces... What's a normal input string for xss_clean() ?
Thanks for answers 
Anything that has an 'src' attribute can link external resources and trigger their execution, and thus - XSS.
Bold doesn't have the 'src' attribute and cannot do anything potentially dangerous.
Anchor doesn't have the 'src' attribute, but
can be altered or replaced in certain cases.
I don't know what you mean by a "normal input string" ... there's no such thing. The function is made to strip or defuse potentially dangerous tags and attributes, and that's what it does.