If there’s a need to capture an account value in a string, e.g. as part of a text, and the currency filter is applied to it, you could run into issues when storing that string in a result.
We do this e.g. to include texts in export files like XBRL.
{% capture profit_text %}
The profit of 2022 is {{ period.accounts.revenues | currency, invert:true }}
{% endcapture %}
{% result 'profit_text' profit_text %}
Your result will contain something like this:
Use the new filter remove_currency_links
to ensure the string is stored in a correct way.
It removes the account drop modal from the printed amount in your text.
{% capture profit_text %}
The profit of 2022 is {{ period.accounts.revenues | currency, invert:true | remove_currency_links }}
{% endcapture %}
{% result 'profit_text' profit_text %}