I use spamspan for email filter, and this is ok when displaying nodes.
But when I make a search, the e-mail in the rows of the result page are not correctly filtered.
For exemple, the output shows e-mail address as : name [at] domain [dot] fr , with a code page :
name [at] domain [dot] fr
instead of the same mail that is shown as name@domain.fr in the node, with a code page :
<span class="spamspan"><span class="u">name</span> [at] <span class="d">domain [dot] fr</span></span>
I would like that this was applied in the search result rows too.
I tried to use check_markup() and spamspan() in my search-result.tpl.php template as given in #338116: spamspan filter not applied in the output of a view (views module) issue, but e-mail are still displayed like name [at] domain [dot] fr instead of name@domain.fr with the spamspan classes in code page.
Any idea to resolve this problem ?
Comments
Comment #1
lakka commentedI can't do anything about this in the spamspam module. The email addresses do not appear as links in the search results because of the way that the search module returns those results. It might be possible to do something by overriding the search-result template and passing the search snippet through the spamspan function, but I'm not sure.
Comment #2
lucuhb commentedThanks for your response.
I tried with this code in the search-result.tpl.php
The result is always with the form
firstname [dot] name [at] domain [dot] frSo no way to do something as you suggested.