Email Address Obfuscation on Imported Pages
spflanze - November 9, 2009 - 17:50
| Project: | Import HTML |
| Version: | 6.x-1.0 |
| Component: | Code |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
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.

#1
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);
}
#2
The problem is solved so I closing the issue.