You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using mailparser to grab the html from an email and then create an image using puppeteer. With URLs that are missing the 'http://' or 'https://' protocol scheme, the image doesn't load.
For example:
<img src="192.168.69.91/foo.jpg" border=0 />
I could regex through the resulting html after mailparser returned the html but this is messy. Could this be done inside mailparser as it tries to expand the html? Maybe some option to provide a default scheme for URLs missing a scheme? Or some way to provide a callback function which I could write a function to modify the URL?
Other suggestions to fix this greatly appreciated!
The text was updated successfully, but these errors were encountered:
I'm using mailparser to grab the html from an email and then create an image using puppeteer. With URLs that are missing the 'http://' or 'https://' protocol scheme, the image doesn't load.
For example:
I could regex through the resulting html after mailparser returned the html but this is messy. Could this be done inside mailparser as it tries to expand the html? Maybe some option to provide a default scheme for URLs missing a scheme? Or some way to provide a callback function which I could write a function to modify the URL?
Other suggestions to fix this greatly appreciated!
The text was updated successfully, but these errors were encountered: