Function: symbols_to_html

Function: symbols_to_html



Convert a tagged string to HTML code for use in web pages, entirely using a symbol font. This is intended for fields with always symbol:true.

This function can only be used in an export template, when create directory is true, as the images of the font are written to the output directory.


Parameter Type Description
input tagged string String to convert to html
symbol_font string Name of a symbol font to use.
symbol_font_size real number (optional) Size in points to use for the symbol font, default 12


 symbols_to_html("WU")    == "<img src='data-dir/w.png' alt='W'><img src='data-dir/u.png' alt='U'>"

See also

to_html Convert tagged text to html.