(function() {
if ( !window.BG || typeof window.BG !== 'object') {
window.BG = {};
}
var BG = window.BG;
BG.votdWriteCallback = function(json) {
var votd = json.votd;
document.write('<div>' + votd.text);
document.write(' </br><a target="_blank" href="' + votd.permalink +'">' + votd.display_ref + '</a>');
if (votd.audiolink) {
document.write(' <a href="' + votd.audiolink + '" title="Listen to chapter"><img alt="Listen to chapter" src="//www.biblegateway.com/assets/images/audio/sound.gif" border=0/></a>');
}
document.write('</div>');
};
window.BG = BG;
})();
Want to clean this script because for some reason it's breaking my HTML divs but I can't see where the problem is.
,
, or
?](https://stackoverflow.com/questions/1946426/html-5-is-it-br-br-or-br) – showdev Jan 30 '20 at 00:20