Enhanced HTML generation for dictionary entries.