|
05-17-2005, 06:45 PM | #1 |
Former Member
Join Date: Mar 2005
Posts: 1
|
related problem
Hi there,
we use a script to encode email addresses i.e auckland@ajpark.com -->& #97;& #117;& #99;& #107;& #108;& #97;& #110;& #100;& #64;& #97;& #106;& #112;& #97;& #114;& #107;& #46;& #99;& #111;& #109; This is at the request of our client so that the email addresses are not so easily harvested. It would be great if there was some way of keeping these encoded in the results, as our client is complaining about see the ;j etc Is there anyway to make this happen? Last edited by scarydog; 05-17-2005 at 06:49 PM. |
05-19-2005, 08:28 AM | #2 |
Head Mole
Join Date: May 2003
Posts: 2,539
|
In search_function.php find where the PHP htmlspecialchars function is used on $title, $table_results, and $extract, and then wrap the htmlspecialchars function with something like the following:
Code:
$foo = str_replace("&","&",htmlspecialchars($foo,ENT_QUOTES));
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension. |
Thread Tools | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Chinese characters and html fragments in results | cranachan | Troubleshooting | 4 | 01-16-2006 12:27 PM |
Phpdig indexing including HTML in results | Mrsoft | Troubleshooting | 1 | 09-28-2004 05:23 AM |
Creating a .php Template Instead of .html | Destroyer X | How-to Forum | 25 | 07-29-2004 10:53 PM |
index only HTML files | bigals | Troubleshooting | 17 | 12-02-2003 04:21 AM |
Indexing all HTML-Comments | Rolandks | Bug Tracker | 4 | 10-04-2003 07:38 AM |