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

sp webpart base.iwebpartpropertymetadata.issearchableplaintext

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

Home > @microsoft/sp-webpart-base > IWebPartPropertyMetadata > isSearchablePlainText

IWebPartPropertyMetadata.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