Fix dropdown list when HTML characters exist