Skip to content
This repository has been archived by the owner on Oct 23, 2021. It is now read-only.

sp component base.iserializedserverprocesseddata.htmlstrings

John Nguyen edited this page Aug 19, 2021 · 1 revision

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>
}

Clone this wiki locally