diff --git a/lib/routes/bbc/utils.js b/lib/routes/bbc/utils.js index 8b3122d7d..8d472fc73 100644 --- a/lib/routes/bbc/utils.js +++ b/lib/routes/bbc/utils.js @@ -1,26 +1,34 @@ -const ProcessImage = ($, e, c) => { +const cheerio = require('cheerio'); +const ProcessImage = ($, e, c, noscript = false) => { const img = $(e).find(c); if (img.length > 0) { let message; + // special handling for img wrapped in