Project

General

Profile

« Previous | Next » 

Revision 490

Added by Matthias over 17 years ago

Fixed issue with escaped single and double quotes in search result (Thanks to thorn)

View differences:

search_convert.php
35 35

  
36 36
//htmlspecialchars_decode
37 37
$string_htmlspecialchars_decode=array(
38
	"&lt;"=>"<", "&gt;"=>">", "&amp;"=>"&", "&quot;"=>"\"", "&#039;"=>"\'"
38
	"&lt;"=>"<", "&gt;"=>">", "&amp;"=>"&", "&quot;"=>"\"", "&#39;"=>"\'"
39 39
);
40 40
//htmlspecialchars_decode
41 41
$string_htmlspecialchars_encode=array(
42
	"<"=>"&lt;", ">"=>"&gt;", "&"=>"&amp;", "\""=>"&quot;", "\'"=>"&#039;"
42
	"<"=>"&lt;", ">"=>"&gt;", "&"=>"&amp;", "\""=>"&quot;", "\'"=>"&#39;"
43 43
);
44 44

  
45 45
//convert some bad characters

Also available in: Unified diff