Use mysqli->real_escape_string instead of preg_replace for dashboard content to allow °,% in units