Font Awesome use

mdsupport wrote on Sunday, June 26, 2016:

Does anyone have few html generator functions that make use of icons easier for developers?
Current code looks something like:

<a id="printview" class="css_button" title="Print View" type="button" href="#">
<span>View Printable Version</span>
</a>

It would promote uniform styling if we had a library of standard html elements incorporating icons - something like:

insertButton("printview", "Print View","#", "fa-print");

matthewvita wrote on Sunday, June 26, 2016:

LGTM. Only suggestion would be for the first argument to be the literal css selector so the programmer can choose between IDs and classes.