mirror of
https://github.com/panosoft/inline-html
synced 2026-01-13 13:04:30 -08:00
Return decoded html.
This commit is contained in:
@@ -5,7 +5,7 @@ var path = require('path');
|
||||
|
||||
var inline = function (html, filePath) {
|
||||
var basedir = path.dirname(filePath);
|
||||
var $ = cheerio.load(html);
|
||||
var $ = cheerio.load(html, {decodeEntities: false});
|
||||
var images = $('img').filter(function (index, element) {
|
||||
return isLocalPath($(element).attr('src'));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user