// sanitise str_to_sanitize function sanitize_text(str_to_sanitize) { return $("").text(str_to_sanitize).html() };