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

sp webpart base.iserializedserverprocesseddata.searchableplaintexts

John Nguyen edited this page Apr 22, 2021 · 2 revisions

Home > @microsoft/sp-webpart-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