atomic-result-html

This is for:

Developer
In this article

See Display results to learn more about customizing your result templates.

The atomic-result-html component renders the HTML value of a string result field.

There is an inherent XSS security concern associated with the usage of this component.

Use only with fields for which you are certain the data is harmless.

Properties

Property Attribute Description Type Default

field (required)

field

The result field which the component should use. If set, Atomic searches for the specified field in the Result object first. If there’s no such a field, Atomic searches through the Result.raw object. It’s important to include the necessary field in the ResultList component.

string

sanitize

sanitize

Specify if the content should be sanitized, using DOMPurify.

boolean

true