close char to entity

replaced the close char with the entity