/// <summary> /// In-lines the CSS within the HTML given. /// </summary> /// <param name="html">The HTML input.</param> /// <param name="removeStyleElements">If set to <c>true</c> the style elements are removed.</param> /// <param name="ignoreElements">CSS selector for STYLE elements to ignore (e.g. mobile-specific styles etc.)</param> /// <param name="css">A string containing a style-sheet for inlining.</param> /// <returns>Returns the html input, with styles moved to inline attributes.</returns> public static InlineResult MoveCssInline(string html, bool removeStyleElements = false, string ignoreElements = null, string css = null, bool stripIdAndClassAttributes = false) { var pm = new PreMailer(html, removeStyleElements, ignoreElements, css, stripIdAndClassAttributes); return(pm.Process()); }
/// <summary> /// In-lines the CSS within the HTML given. /// </summary> /// <param name="html">The HTML input.</param> /// <param name="removeStyleElements">If set to <c>true</c> the style elements are removed.</param> /// <param name="ignoreElements">CSS selector for STYLE elements to ignore (e.g. mobile-specific styles etc.)</param> /// <returns>Returns the html input, with styles moved to inline attributes.</returns> public static InlineResult MoveCssInline(string html, bool removeStyleElements = false, string ignoreElements = null) { var pm = new PreMailer(html, removeStyleElements, ignoreElements); return pm.Process(); }
/// <summary> /// In-lines the CSS within the HTML given. /// </summary> /// <param name="html">The HTML input.</param> /// <param name="removeStyleElements">If set to <c>true</c> the style elements are removed.</param> /// <param name="ignoreElements">CSS selector for STYLE elements to ignore (e.g. mobile-specific styles etc.)</param> /// <returns>Returns the html input, with styles moved to inline attributes.</returns> public static InlineResult MoveCssInline(string html, bool removeStyleElements = false, string ignoreElements = null) { var pm = new PreMailer(html, removeStyleElements, ignoreElements); return(pm.Process()); }