mirror of
https://github.com/remy/inliner.git
synced 2024-08-16 20:00:35 +03:00
parent
51ff9ddf97
commit
109555f690
@ -239,9 +239,9 @@ function main() {
|
||||
enc = 'utf-8';
|
||||
}
|
||||
|
||||
cheerioLoadOptions.decodeEntities = false;
|
||||
if (enc !== 'utf-8') {
|
||||
debug('decoding from: %s', enc);
|
||||
cheerioLoadOptions.decodeEntities = false;
|
||||
body = iconv.encode(iconv.decode(res.body, enc), 'utf-8');
|
||||
} else {
|
||||
body = res.body;
|
||||
|
12
test/fixtures/html-whitespaces.result.html
vendored
12
test/fixtures/html-whitespaces.result.html
vendored
@ -1,15 +1,15 @@
|
||||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>html whitespaces</title> </head> <body> <div><code>// projector page window.addEventListener('storage', function (event) { if (event.key === 'currentSlide') { goToSlide(event.newValue); } });</code></div> <pre><code>// projector page
|
||||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>html whitespaces</title> </head> <body> <div><code>// projector page window.addEventListener('storage', function (event) { if (event.key === 'currentSlide') { goToSlide(event.newValue); } });</code></div> <pre><code>// projector page
|
||||
|
||||
window.addEventListener('storage', function (event) {
|
||||
window.addEventListener('storage', function (event) {
|
||||
|
||||
if (event.key === 'currentSlide') {
|
||||
if (event.key === 'currentSlide') {
|
||||
goToSlide(event.newValue);
|
||||
}
|
||||
});</code></pre> <textarea><code>// projector page
|
||||
|
||||
window.addEventListener('storage', function (event) {
|
||||
window.addEventListener('storage', function (event) {
|
||||
|
||||
if (event.key === 'currentSlide') {
|
||||
if (event.key === 'currentSlide') {
|
||||
goToSlide(event.newValue);
|
||||
}
|
||||
});</code></textarea> </body> </html>
|
||||
});</code></textarea> </body> </html>
|
||||
|
2
test/fixtures/image-style-attr.result.html
vendored
2
test/fixtures/image-style-attr.result.html
vendored
@ -1 +1 @@
|
||||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>css image in style attr</title> </head> <body> <div style="background:url("data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACwAAAAAAQABAAACAkQBADs=") repeat;"></div> <div style="background:url("data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACwAAAAAAQABAAACAkQBADs=") repeat;"></div> <div style="background:url("data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACwAAAAAAQABAAACAkQBADs=") repeat;"></div> <div style="background:url("data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACwAAAAAAQABAAACAkQBADs=") repeat;"></div> </body> </html>
|
||||
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>css image in style attr</title> </head> <body> <div style="background:url("data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACwAAAAAAQABAAACAkQBADs=") repeat;"></div> <div style="background:url("data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACwAAAAAAQABAAACAkQBADs=") repeat;"></div> <div style="background:url("data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACwAAAAAAQABAAACAkQBADs=") repeat;"></div> <div style="background:url("data:image/gif;base64,R0lGODlhAQABAIABAP///wAAACwAAAAAAQABAAACAkQBADs=") repeat;"></div> </body> </html>
|
||||
|
Loading…
Reference in New Issue
Block a user