function htmlDecode(value) {
return $("").html(value).text();
}
$(document).ready(function(){
var newscontent = '<!-- Begin module header wrapper code --> <style> /* https://www.aapg.org/Portals/0/images/_site/share-icons-sprite.png?width=136&height=60 */ @media only screen and (min-width: 769px) { .aapg-sm-small { background-repeat: no-repeat; display: inline-block; font-family: Verdana,Helvetica,sans-serif; font-size: 11px; height: 16px; line-height: 16px; padding-left: 20px; padding-right: 3px; white-space: nowrap; background-image: url("https://img.aapg.org/Portals/0/images/_site/share-icons-sprite.png?width=136&height=60"); } .aapg-twitter-small { background-position: -20px -20px; padding-left: 16px; } .aapg-facebook-small { background-position: 0px -20px; padding-left: 16px; } .aapg-linkedin-small { background-position: -120px -20px; padding-left: 16px; } .daily .litImage { float: left; } .daily .litImage a img, .daily .litImage div img { min-height: 0; min-width: 0; width: 100%; box-sizing: border-box; max-width: 64px; } .daily .image-overlay { display: block; position: absolute; width: 50px; height: 50px; } .daily { margin-bottom: 15px; clear: both; } .daily .image-overlay { background-size: 50px 50px !important; } } @media only screen and (max-width: 768px) { .aapg-sm-small { background-repeat: no-repeat; display: inline-block; font-family: Verdana,Helvetica,sans-serif; font-size: 11px; height: 16px; line-height: 16px; padding-left: 20px; padding-right: 3px; white-space: nowrap; background-image: url("https://img.aapg.org/Portals/0/images/_site/share-icons-sprite.png?width=136&height=60"); } .aapg-twitter-small { background-position: -20px -20px; padding-left: 16px; } .aapg-facebook-small { background-position: 0px -20px; padding-left: 16px; } .aapg-linkedin-small { background-position: -120px -20px; padding-left: 16px; } .daily .litImage { float: left; } .daily .litImage a img, .daily .litImage div img { min-height: 0; min-width: 0; width: 100%; box-sizing: border-box; max-width: 64px; } .daily .image-overlay { display: block; position: absolute; width: 50px; height: 50px; } .daily { margin-bottom: 15px; clear: both; } .inner_fullpane_area .ModDNNHTMLC div.daily .litImage { max-width: 64px; } .inner_fullpane_area .ModDNNHTMLC div.daily .text { min-height: 64px; } .daily .image-overlay { background-size: 50px 50px !important; } } </style> <div class="items replaced "><!-- End module header wrapper code --><!-- Begin module body wrapper code --><!-- End module body wrapper code --><!-- Begin module footer wrapper code --><!-- </div>--><!-- <div>DaysLimit = </div> <div>Mode = DailyNews</div> <div>numberperrow = 1</div>--> </div> <!-- <div>Pagination goes here: <br/> NumRecords 0 <br/> NumPages n <br/> PageCount 1 ( ItemCountStart 1 - ItemCountEnd 0 ) <br/> CurrentPage 1</div>--><!-- End module footer wrapper code -->';
var newsmoduleid = $("div.tabs-daily-news");
console.log(newsmoduleid);
$(newsmoduleid).html( htmlDecode( newscontent ) );
});