Akbar Nurlybayev anurlybayev

View buildHTML utility
1 2 3 4 5 6 7 8 9 10
// my little html string builder
buildHTML = function(tag, html, attrs) {
// you can skip html param
if (typeof(html) != 'string') {
attrs = html;
html = null;
}
var h = '<' + tag;
for (attr in attrs) {
if(attrs[attr] === false) continue;
Something went wrong with that request. Please try again.