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

sp component base.icomponentpropertymetadata.issearchableplaintext

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

Home > @microsoft/sp-component-base > IComponentPropertyMetadata > isSearchablePlainText

IComponentPropertyMetadata.isSearchablePlainText property

Indicates if the property contains plain text that should be search-indexed by SharePoint.

Signature:

isSearchablePlainText?: boolean;

Remarks

This flag instructs the framework to store the property in a representation that supports search indexing. The content will be treated as plain text; SharePoint will not modify the string in any way, and special HTML characters may be stored encoded and appear in search results. If your string contains HTML markup, use the isHtmlString setting instead.

Security note: For security reasons, never assign a plain text string to Element.innerHTML.

Clone this wiki locally