New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for cheerio options #25
Comments
Use element.html() instead of $.html(element), see foundation#25
Use element.html() instead of $.html(element) ... see issue foundation#25
Hello, Do you have an example to pass cherio options to the inky() function? I can't make it work. Thanks! |
Yes, use it like this with gulp/vinyl (inky from the master branch): vfs.src('somefile.html')
.pipe(inky({cheerio: {decodeEntities: false}}))
.pipe(vfs.dest('output'))
"mytext" output: "mytext" So, the options are actually passed to |
I was able to drill down the issue this input results in decoded entities for the text <table class="body">
<tr>
<td class="center" align="center" valign="top">
<center>
"broken"
</center>
"works"
</td>
</tr>
</table> putting an attribute <table class="body">
<tr>
<td class="center" align="center" valign="top">
<center data-parsed>
"works"
</center>
"works"
</td>
</tr>
</table> |
Thanks for the update! But I have a doub't: I have installed Inky using NPM (https://www.npmjs.com/package/inky). I'm using Gulp to compile the files, and if I pass the cheerio options to Inky, for example:
It won't work. This feature works ok from the NPM version? Thanks! |
No, the feature was introduced here 9fda83e#diff-168726dbe96b3ce427e7fedce31bb0bc and is included in the master branch ... try |
Ok, thanks for your help! :) |
@dherges @ibarral Just published the Foundation for Emails 2.1 release blog post and the release went out this morning! We also started a discussion on the future of Inky and what amazing integrations can be made. I'm sure you have some comments, questions, or ideas: http://foundation.zurb.com/forum/posts/39717-architecting-the-future-of-foundation-for-emails |
Right now,
releaseTheKraken()
replaces"
with"
(and other entties as well).Issue 1:
componentFactory
should useelem.html()
instead of$.html(elem)
Issue 2: it should be possible to pass cherio options to the
inky()
function --> already done on masterThe text was updated successfully, but these errors were encountered: