jQuery always render <br> instead of <br/>
Hi,
is there a way, switch, option etc. to let jQuery create <br/> instead of <br>?
The following code will always create <br>:
- $('<div class="partner-item-data-short"><strong>' + data.partner[x].name1 + '</strong><br />' +
- (data.partner[x].zip.length ? data.partner[x].zip + ' ' + data.partner[x].city + '<br />' : '') +
- '</div>'
- ).appendTo(pi);
Anyone got into this too? I would like to got valid xhtml 1.1 code :-)
tia