/** * creates a HTML list * * @param IconFontGenerator $generator icon font generator * @param string $fontFile font file name * @return string HTML unordered list */ protected function getHTMLListFromGenerator(IconFontGenerator $generator, $fontFile) { $fontOptions = $generator->getFont()->getOptions(); $html = '<ul>'; $glyphNames = $generator->getGlyphNames(); asort($glyphNames); foreach ($glyphNames as $unicode => $glyph) { $html .= "\n\t" . '<li data-icon="&#x' . $unicode . ';" title="' . htmlspecialchars($glyph) . '">' . htmlspecialchars($glyph) . '</li>'; } $html .= "\n" . '</ul>' . "\n"; return $html; }