Skip to content

StefH/HtmlInliner

Repository files navigation

HtmlInliner

Packages an HTML document into a single file that embeds all images, favicon, css, scripts, fonts and other url() loaded entries.

This can be usefull when moving CSS to inline style attributes, to gain maximum E-mail client compatibility or Pdf generation from Html.

NuGet Badge

Example

using HtmlInliner;

var htmlInliner = new HTMLInliner();
var inlined = htmlInliner.Process("https://www.google.com");
File.WriteAllText(@"c:\temp\web\google_inlined.htm", inlined);

About

Packages an HTML document into a single file that embeds all images, favicon, css, scripts, fonts and other url() loaded entries.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages