Tweak smartinput for HTML tag and SQL's not operator