Highlight
A helper to show highlighted text provided by the Search API. Use Highlight when the information requested by SDK Query Hooks uses highlight delimiters for some of the returned fields.
API Reference
|
Name |
Type |
Description |
|---|---|---|
|
|
string |
The text that has the separators |
|
|
string |
The pre delimiter |
|
|
string |
The post delimiter |
|
|
string |
Default strong The tag that will be used to wrap the content within delimiters. |
Example
The following code blocks describe using the Highlight utility with a query hook.
Then, at the time of rendering the information, Highlight is used as in the following code block.