function htmlDecode(value) {
return $("").html(value).text();
}
$(document).ready(function(){
var deadlinescontent = '<!-- Begin module header wrapper code --> <style> /* AAPG OVERRIDES */ .h3_dark_content .PfPubNav ul li a[href*=antarctica] {display:none;} .h3_dark_content .PfPubNav ul li a[href*=all-deadlines] span, a[href$=ar] + ul, a[href$=apr] + ul, a[href$=cr] + ul, a[href$=er] + ul, a[href$=lar] + ul, a[href$=mer] + ul, a[href$=es] + ul, a[href$=gcs] + ul, a[href$=mcs] + ul, a[href$=ps] + ul, a[href$=rms] + ul, a[href$=sws] + ul { display: none; } a[href$=states] + ul { display: block; } .h3_dark_content .PfPubNav ul li a[href*=all-deadlines]:after { /*content: "All Deadlines";*/ } /*deadlines/pfallitems replaced */ .h3_dark_content .PfPubNav #PfCategoriesNavUl { list-style-type: none; } .ShowAllLeftMenuWrapper .PfPubNav ul li a span.MenuText, .ContentTypeLeftMenuWrapper .PfPubNav ul li a span.MenuText, .CategoryLeftMenuWrapper .PfPubNav ul li a span.MenuText, .h3_dark_content .PfPubNav #PfCategoriesNavUl li a span, .h3_dark_content .PfPubNav ul li a[href*=all-deadlines] { color: #fff; display: block; font-size: 18px; letter-spacing: 0.5px; line-height: 20px; margin-bottom: 10px; } .h3_dark_content .PfPubNav #PfCategoriesNavUl li ul li a { background: rgba(0, 0, 0, 0) none repeat scroll 0 0; color: #fff; display: block; font-size: 16px; letter-spacing: 0.5px; line-height: 16px; margin-bottom: 10px; } p.contentTypeHeading { margin-bottom: 15px; } .h3_dark_content .PfPubNav #PfContentTypesNavUl li a:hover span, .h3_dark_content .PfPubNav #PfCategoriesNavUl li a:hover span, .h3_dark_content .PfPubNav #PfCategoriesNavUl li ul li a:hover, .h3_dark_content .PfPubNav #PfCategoriesNavUl li ul li ul li a:hover, .h3_dark_content .PfPubNav ul li a[href*=all-deadlines]:hover { color: #f7941e; } </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 = Deadlines</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 deadlinesmoduleid = $("div.tabs-deadlines");
console.log(deadlinesmoduleid);
$(deadlinesmoduleid).html( htmlDecode( deadlinescontent ) );
});