The github source code located at: https://github.com/elbasri/mongodb/blob/master/mapreduce
Full source:
// News Content (Body)
var map = function() {
var body = this.body;
if (body) {
str=body.replace(/<[^>]*>/g, '');
str=str.replace(/<\s*br\/*>/gi, "\n");
str=str.replace(/<\s*a.*href="(.*?)".*>(.*?)<\/a>/gi,...