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

sp component base.iserializedserverprocesseddata.searchableplaintexts

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

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

ISerializedServerProcessedData.searchablePlainTexts property

A key-value map where keys are string identifiers and values are strings that should be search indexed.

Signature:

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

Remarks

The values are HTML-encoded before being sent to the server. The encoded values are visible to the search indexer, but are not treated as valid HTML. So, other services such as link fixup will not run on them.

Example:

{
 'justSomeText': 'This is some plain text',
 'anotherText': 'Can have <any> characters here: "<>&\''
}

Clone this wiki locally