以下示例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;