Skip to content

ActiveCampaign/style-merge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

StyleMerge

StyleMerge

Simple CSS inlining, for email, for C# and other .net-based languages.

What's this for?

StyleMerge allows you to inline <style> blocks to style= attributes for email, this is necessary to ensure the broadest rendering support in email clients. It's the engine behind our style inlining for Postmark Templates, and we're proud to provide it as Open Source to the .net community.

How to use this library:

var sourceHtml = "<html><head><style>...</style></head><body>...</body></html>";
var processedHtml = StyleMerge.ProcessHtml(sourceHtml);

About

Simple CSS inlining, for email.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors