STRIPHTML CSS and Script problem

Tony Johansson tony.johansson at SVENSKAKYRKAN.SE
Wed Dec 1 22:07:25 GMT 2004


The striphtml function lacks in one area.

Javascript code and css is shown in emails when striphtml is active.
I guess MailScanner assumes that everything betveen <tag> and </tag> is
text, but with <script> and <style> tags you're left with the code once the
tag is stripped.

This is starting to be a problem as quite a lot of our users get annoyed or
confused at this, as they see it, jibberish.

Possible to solve?

Regards, Tony

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the MAQ (http://www.mailscanner.biz/maq/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list