[ ]
What's bad - or what's annoying is that linked javascript files will be embedded as well Javascript is usually disabled in mail readers for security purposes and a large javascript library can really take up some size in an email message
The good news is, there may be a way to stop that, as there's an actual method in the code specifically to grab Javascript stuff If there's a method, perhaps I can tweak the code to accept a parameter to tell the module to embed or skip over things like javascript
MyMIMELiteHTML has the following lines:
# Include external Javascript files
#$gabarit = $self->include_javascript($gabarit,$racinePage);
Just replace it with:
# Remove Javascript:
$gabarit=~s/<script\s+[^>]*?>[\s\S]*?<\/script\s*>//iegmx;
That's it
Btw, on my request MIME::Lite::HTML added the possibility to remove javascript code:
remove_jscript => 1
But onfurtunately the owner simplified my regexp so it is still not working properly, see http://rt cpan org/Public/Bug/Display html?id=40164
Anyway, changing:
$gabarit=~s/