updated glossary rendering to handle html entities