Unable to decode values from HTML body in Squidex Rule Script

Hello Squidex team,

We are currently implementing a Rule (Content Changed) in Squidex and are attempting to decode values contained within an HTML body field.

Our expectation is that the built-in decode function/script should process the encoded value and return the decoded content. However, when the rule executes, the decode function does not appear to run successfully and instead returns an error.

Scenario

Source field contains HTML content.

<div="testing" data-tags="dGVzdGluZw=="></div>

We need to extract and decode a value embedded within the HTML body.

The rule executes successfully until it reaches the decode operation.

Could you please confirm:

  1. Whether decoding values from HTML content is supported within Squidex Rule scripts?
  2. If there are any limitations on the built-in decode functions when processing HTML fields?
  3. Is there an alternative/recommended approach for extracting and decoding values from rich text content within rules?

Thank you for your assistance.