提交 1a3e3765 编写于 作者: H hjdhnx

优化drpy2

上级 8755104f
3.7.9 3.7.8
\ No newline at end of file \ No newline at end of file
...@@ -591,22 +591,16 @@ const parseTags = { ...@@ -591,22 +591,16 @@ const parseTags = {
}); });
parse = sp.join(' ').trim(); parse = sp.join(' ').trim();
} }
if(parse === 'Text'){ // if(parse === 'Text'){
parse = 'body'; // parse = 'body';
option = 'Text'; // option = 'Text';
}else if(parse === 'Html'){ // }else if(parse === 'Html'){
parse = 'body'; // parse = 'body';
option = 'Html'; // option = 'Html';
}
// print('pdfh parse后:'+parse+',option:'+option);
let result = defaultParser.pdfh(html,parse + " " + option);
// let result='';
// try {
// result = defaultParser.pdfh(html,parse + " " + option);
// }catch (e) {
// print('xxxxxxxxxxx');
// print('pdfh发生了错误');
// } // }
// print('pdfh parse后:'+parse+',option:'+option);
// let result = defaultParser.pdfh(html,parse + " " + option);
let result = defaultParser.pdfh(html,parse,option);
if(option&&/style/.test(option.toLowerCase())&&/url\(/.test(result)){ if(option&&/style/.test(option.toLowerCase())&&/url\(/.test(result)){
try { try {
result = result.match(/url\((.*?)\)/)[1]; result = result.match(/url\((.*?)\)/)[1];
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册