I have a small serch engine written in php with mysql database.
My config file for my php search has this piece of code that I believe that i must edit in order to keep search strings from appearing as such:
…d Schools Academic Media & Technology ITS Access Map for People with Disabiliti… …onal Schools Admissions Information, Undergraduate African American Studies Afri… …ale Alumni Alumni Magazine, Yale Alumni Schools Committee ASC American Chemica… …e University Art, School of Arts and Sciences Academic Departments Arts and Scie…
I prefer, like anyone would, to have a complete block of readable text to appear in the serach page.
Here is the code that I believe that I must edited, however, I do not know how to do this correctly.
[code]// $allowed_link_chars = “[:%/?=&;,._a-zA-Z0-9|+ ()~-]"; // includes space and () - not good with javascript
$allowed_link_chars = "[:%/?=&;,._a-zA-Z0-9|+~-]”;
//----------HTML ENTITIES
$spec = array( “&” => “&”,
“à” => “?”,
“è” => “?”,
“ù” => “?”,
“ó” => “?”,
“é” => “?”,
“î” => “?”,
“ô” => “?”,
“û” => “?”,
“ê” => “?”,
“ç” => “?”,
“œ” => “oe”,
“>” => " ",
“<” => " ",
“°” => " ",
“&apos” => “’”,
“"” => " ",
“â” => “?”,
“ï” => “?”,
“ë” => “?”,
“ä” => “?”,
“Ä” => “?”,
“Ë” => “?”,
“Ï” => “?”,
“Ü” => “?”,
“ö” => “?”,
“ü” => “?”,
“ ” => " ",
“ß” => “?”,
“í” => “?”,
“®” => " ",
“©” => " ",
“á” => “?”,
“Á” => “?”,
“ð” => “?”,
“Д => “?”,
“É” => “?”,
“Í” => “?”,
“Ó” => “?”,
“ú” => “?”,
“Ú” => “?”,
“Þ” => “?”,
“þ” => “?”,
“Ö” => “?”,
“æ” => “?”,
“Æ” => “?”,
“å” => “?”,
“Å” => “?”,
“ø” => “?”,
“Ø” => “?”
);[/code]
Any help is appreciated.
Tim