http://psykoptic.com/blog/post/2008/12/ ... ditor.aspx
$sql = 'SELECT user_id, username FROM '.$prefix.'_users WHERE user_id <= \'20\' AND user_id != \'1\'';
$sql = 'SELECT user_id, username FROM '.$prefix.'_users WHERE user_id <= '20' AND user_id != '1'';
// ----------------------
// Helper functions
// ----------------------
function HTMLEncode(text) {
if (!text)
return '';
text = text.replace(/&/g, '&');
text = text.replace(/</g, '<');
text = text.replace(/>/g, '>');
return text;
}
function HTMLDecode(text) {
if (!text)
return '';
text = text.replace(/>/g, '>');
text = text.replace(/</g, '<');
text = text.replace(/&/g, '&');
text = text.replace(/<br>/g, '\n');
text = text.replace(/"/g, '"');
return text;
}