foundation / inky

Convert a simple HTML syntax into tables compatible with Foundation for Emails.
http://foundation.zurb.com/emails
673 stars 107 forks source link

Allow retrieving just the body of the document #107

Closed RobLoach closed 4 years ago

RobLoach commented 5 years ago

By default, Cheerio will retrieve the whole HTML when calling $.html(). This change allows returning just the body through the passing { justBody: true } into the cheerio options.

May want to just do this by default?

DanielRuf commented 4 years ago

See the failing tests.

RobLoach commented 4 years ago

A better approach here might be to pass target variable.

DanielRuf commented 4 years ago

I'm not sure. What issue does this PR resolve? It looks like it makes things more complicated than needed.

RobLoach commented 4 years ago

Yeah, going to just close this.