var html = $('#ch06-p-11').html(); //alert(html);
html = html.replace(/(TheClownShop.net)<\/span>/, '$1');
$('#ch06-p-11').html(html);
// anderson chapter links: disable them
//Economics by Example Chapter 6
//Economics by Example Chapter 2
$("[data-type='section']").each(function(index,element) {
var href = window.location.href;
var ebe = new RegExp(/krugmanapecon2e_anderson/);
if (ebe.test(href)) {
var newhtml = $(this).html();
//alert('data-sec-id: ' + $(this).attr('data-sec-id') + '\nhref: ' + window.location.href + '\n' + newhtml);
newhtml = newhtml.replace(/Economics by Example (Chapter \d+)<\/span>/g,"$1");
newhtml = newhtml.replace(/Economics by Example (Chapter \d+)<\/a>/g,"$1");
$(this).html(newhtml);
}
});