PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   How-to Forum (http://www.phpdig.net/forum/forumdisplay.php?f=33)
-   -   HTML entities in results (http://www.phpdig.net/forum/showthread.php?t=2018)

scarydog 05-17-2005 05:45 PM

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 ;&#106 etc

Is there anyway to make this happen?

Charter 05-19-2005 07:28 AM

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));


All times are GMT -8. The time now is 07:51 AM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.