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
Copy file name to clipboardExpand all lines: PreMailer.Net/PreMailer.Net/PreMailer.cs
+88Lines changed: 88 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -68,6 +68,23 @@ public PreMailer(Stream stream, Uri baseUri = null)
68
68
_cssSelectorParser=newCssSelectorParser();
69
69
}
70
70
71
+
/// <summary>
72
+
/// In-lines the CSS within the HTML given.
73
+
/// </summary>
74
+
/// <param name="html">The HTML input.</param>
75
+
/// <param name="removeStyleElements">If set to <c>true</c> the style elements are removed.</param>
76
+
/// <param name="ignoreElements">CSS selector for STYLE elements to ignore (e.g. mobile-specific styles etc.)</param>
77
+
/// <param name="css">A string containing a style-sheet for inlining.</param>
78
+
/// <param name="stripIdAndClassAttributes">True to strip ID and class attributes</param>
79
+
/// <param name="removeComments">True to remove comments, false to leave them intact</param>
80
+
/// <param name="customFormatter">Custom formatter to use</param>
81
+
/// <param name="preserveMediaQueries">If set to true and removeStyleElements is true, it will instead preserve unsupported media queries in the style node and remove the other css, instead of removing the whole style node</param>
82
+
/// <returns>Returns the html input, with styles moved to inline attributes.</returns>
/// <param name="removeStyleElements">If set to <c>true</c> the style elements are removed.</param>
111
+
/// <param name="ignoreElements">CSS selector for STYLE elements to ignore (e.g. mobile-specific styles etc.)</param>
112
+
/// <param name="css">A string containing a style-sheet for inlining.</param>
113
+
/// <param name="stripIdAndClassAttributes">True to strip ID and class attributes</param>
114
+
/// <param name="removeComments">True to remove comments, false to leave them intact</param>
115
+
/// <param name="customFormatter">Custom formatter to use</param>
116
+
/// <param name="preserveMediaQueries">If set to true and removeStyleElements is true, it will instead preserve unsupported media queries in the style node and remove the other css, instead of removing the whole style node</param>
117
+
/// <returns>Returns the html input, with styles moved to inline attributes.</returns>
/// /// <param name="baseUri">The base url that will be used to resolve any relative urls</param>
145
+
/// <param name="baseUri">The Url that all relative urls will be off of.</param>
146
+
/// <param name="html">The HTML input.</param>
147
+
/// <param name="removeStyleElements">If set to <c>true</c> the style elements are removed.</param>
148
+
/// <param name="ignoreElements">CSS selector for STYLE elements to ignore (e.g. mobile-specific styles etc.)</param>
149
+
/// <param name="css">A string containing a style-sheet for inlining.</param>
150
+
/// <param name="stripIdAndClassAttributes">True to strip ID and class attributes</param>
151
+
/// <param name="removeComments">True to remove comments, false to leave them intact</param>
152
+
/// <param name="customFormatter">Custom formatter to use</param>
153
+
/// <param name="preserveMediaQueries">If set to true and removeStyleElements is true, it will instead preserve unsupported media queries in the style node and remove the other css, instead of removing the whole style node</param>
154
+
/// <returns>Returns the html input, with styles moved to inline attributes.</returns>
/// /// <param name="baseUri">The base url that will be used to resolve any relative urls</param>
184
+
/// <param name="baseUri">The Url that all relative urls will be off of.</param>
185
+
/// <param name="stream">The HTML input.</param>
186
+
/// <param name="removeStyleElements">If set to <c>true</c> the style elements are removed.</param>
187
+
/// <param name="ignoreElements">CSS selector for STYLE elements to ignore (e.g. mobile-specific styles etc.)</param>
188
+
/// <param name="css">A string containing a style-sheet for inlining.</param>
189
+
/// <param name="stripIdAndClassAttributes">True to strip ID and class attributes</param>
190
+
/// <param name="removeComments">True to remove comments, false to leave them intact</param>
191
+
/// <param name="customFormatter">Custom formatter to use</param>
192
+
/// <param name="preserveMediaQueries">If set to true and removeStyleElements is true, it will instead preserve unsupported media queries in the style node and remove the other css, instead of removing the whole style node</param>
193
+
/// <returns>Returns the html input, with styles moved to inline attributes.</returns>
/// <param name="removeStyleElements">If set to <c>true</c> the style elements are removed.</param>
223
+
/// <param name="ignoreElements">CSS selector for STYLE elements to ignore (e.g. mobile-specific styles etc.)</param>
224
+
/// <param name="css">A string containing a style-sheet for inlining.</param>
225
+
/// <param name="stripIdAndClassAttributes">True to strip ID and class attributes</param>
226
+
/// <param name="removeComments">True to remove comments, false to leave them intact</param>
227
+
/// <param name="customFormatter">Custom formatter to use</param>
228
+
/// <param name="preserveMediaQueries">If set to true and removeStyleElements is true, it will instead preserve unsupported media queries in the style node and remove the other css, instead of removing the whole style node</param>
229
+
/// <returns>Returns the html input, with styles moved to inline attributes.</returns>
0 commit comments