I am trying to preserve the styling of the bootstrap theme.
I am trying to avoid appending a large block of html code. The block of html code currently in the append is repeated for each line item (Company Name, Address, Phone, Fax, Email).
Is there a more elegant way of generating the html code without wrapping them in single quotes?
More elegant? maybe if you design the html with placeholders. Then you could clone the html element and fill in the data. Or you could use HTML5 <template>s or ES6 string syntax, or use XSL to process the data.
But stringing along the data is the easiest. Just use your own tags.