atomic-result-html

This is for:

Developer
In this article

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