cheerio js .html()编码没有按预期工作

时间:2015-10-08 00:11:05

标签: javascript cheerio

以下示例cheerio.js呈现额外的字符:

来源:

$x = 1;
while(some actual condition to loop over) {
     $data = 'MSG'  .  $x . ';';
     $x++;
}

输出:

var express = require('express');
var fs = require('fs');
var cheerio = require('cheerio');
var app = express();
var d=cheerio.load(' <%- include ./partials/links %>',{decodeEntities: true,xmlMode: true});
console.log(d.html());
app.listen(8765);
exports = module.exports = app;

0 个答案:

没有答案