I am setting up an import from static pages that have many email addresses embedded in them. There are many of them in both plain text and in href attributed anchor tags with mailto:. I need to obfuscate all of them. I am currently using the spamspan module to do this. This module obfuscates newly entered content but not pre-existing content. And although active during a test import, it did not do obfuscation on these static pages during importation by import_html. I need this done. Is there a way to do this? If not please consider this a feature request.

Comments

spflanze’s picture

I have figured out how to hack Import_HTML to do this. In line 258 of the file coders_php_library/xml-transform.inc I made this modification:

function tidy_strip_php($source) {
 return preg_replace('/<\?.*?\?>/', "", spamspan($source), -1);
}
spflanze’s picture

Status: Active » Closed (fixed)

The problem is solved so I closing the issue.