This commit is contained in:
Roman Kelesidis 2023-08-20 12:00:50 +07:00
parent c2753ad6b0
commit f029df8445
2 changed files with 13 additions and 13 deletions

View File

@ -82,6 +82,19 @@ function sqlite3_escape_string ($str)
return SQLite3::escapeString($str);
}
/**
* html_entity_decode replacement (from php manual)
*/
if (!function_exists('html_entity_decode'))
{
function html_entity_decode($given_html, $quote_style = ENT_QUOTES)
{
$trans_table = array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style));
$trans_table['''] = "'";
return (strtr($given_html, $trans_table));
}
}
/**
* Database
*/

View File

@ -4,19 +4,6 @@
* All Attachment Functions needed everywhere
*/
/**
* html_entity_decode replacement (from php manual)
*/
if (!function_exists('html_entity_decode'))
{
function html_entity_decode($given_html, $quote_style = ENT_QUOTES)
{
$trans_table = array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style));
$trans_table['''] = "'";
return (strtr($given_html, $trans_table));
}
}
/**
* A simple dectobase64 function
*/