MDL-39815 glossary mod: code improvement.
Use html_writer to print out divs.