te-' + this.stateName.replace(/(^\s*|\s*$)/g,''));
                 this.icon.innerHTML = buildIcon(template.icon);
                 this.onClick = L.Util.bind(template.onClick?template.onClick:function(){}, easyButton);
             }

             function buildIcon(ambiguousIconString) {

                 var tmpIcon;

                 // does this look like html? (i.e. not a class)
                 if( ambiguousIconString.match(/[&;=<>"']/) ){

                     // if so, the user should have put in 