What is the rationale behind the striptags modifier leaving the content of a script element intact? I would think it would be wise to have it drop script content.
The striptags output modifier just calls the PHP function strip_tags.
So what you describe is the normal behavior of this function. Only the tags (<script>/</script>) are removed, and not the code inside the tags.
You can always create a custom output modifier, if you need a different behavior.
Ah, yes. I completely forgot that it was just a front for strip_tags. I guess I’ll have to roll my own.
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.