sp component base.iserializedserverprocesseddata.htmlstrings - microsoft/Viva-Connections-Extensibility-Beta GitHub Wiki

Home > @microsoft/sp-component-base > ISerializedServerProcessedData > htmlStrings

ISerializedServerProcessedData.htmlStrings property

A key-value map where keys are string identifiers and values are rich text with HTML format.

Signature:

htmlStrings?: {
        [key: string]: string;
    };

Remarks

SharePoint servers treat the values as HTML content and run services like safety checks, search index and link fixup on them.

Example:

{
  'myRichDescription': '<div>Some standard <b>HTML content</b><a href='http://somelink'>A Link</a></div>'
  'anotherRichText': <div class='aClass'><span style='color:red'>Some red text</div>
}

⚠️ **GitHub.com Fallback** ⚠️