Home > widget-integration > InstantSearchController > containsHtml

InstantSearchController.containsHtml() method

Check whether a string contains HTML tags.

Signature:

protected containsHtml(str: string): boolean;

Parameters

Parameter

Type

Description

str

string

String to check

Returns:

boolean

true if the string contains HTML markup