Class PnPHttpUtility
Inheritance
System.Object
PnPHttpUtility
Namespace: PnP.Framework.Utilities
Assembly: PnP.Framework.dll
Syntax
public static class PnPHttpUtility : object
Methods
ConvertSimpleHtmlToText(String, Int32)
Converts an HTML string from a Windows SharePoint Services rich text field to plain text.
Declaration
public static string ConvertSimpleHtmlToText(string html, int maxLength)
Parameters
System. An HTML string that contains the contents of a Windows SharePoint Services rich text field. |
System. A 32-bit integer representing the maximum desired length of the returned string, or -1 to specify no maximum length. |
Returns
System. A plain-text string version of the string. |