Fix #496: improve replacement of glossary terms in html