/** * Decode string encoded with htmlspecialchars() * * @param $sStr * @return string */ function oos_decode_special_chars($sStr){ $sStr = str_replace('>', '>', $sStr); $sStr = str_replace('<', '<', $sStr); $sStr = str_replace(''', "'", $sStr); $sStr = str_replace('"', "\"", $sStr); $sStr = str_replace('&', '&', $sStr); return $sStr; }