strip html when set suggestion in input + format js code