[PR #3632] [MERGED] fix: escaping in action rule templating #4969

Closed
opened 2026-02-28 21:03:59 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/3632
Author: @UnderKoen
Created: 10/11/2024
Status: Merged
Merged: 10/11/2024
Merged by: @matt-fidd

Base: masterHead: fix/escaping-in-templating


📝 Commits (3)

  • cb0e0f5 fix: escaping in action rule templating
  • 0cead09 chore: release note
  • 31da568 Merge branch 'master' into fix/escaping-in-templating

📊 Changes

3 files changed (+19 additions, -1 deletions)

View changed files

📝 packages/loot-core/src/server/accounts/rules.test.ts (+10 -0)
📝 packages/loot-core/src/server/accounts/rules.ts (+3 -1)
upcoming-release-notes/3632.md (+6 -0)

📄 Description

When having a value that uses for example & or < it is escaped. We don't render the content as plain html so this is not needed.

Testcase:

  • have a rule that just sets notes to template {{notes}}
  • Create a transaction with & in the name notice the escape

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/3632 **Author:** [@UnderKoen](https://github.com/UnderKoen) **Created:** 10/11/2024 **Status:** ✅ Merged **Merged:** 10/11/2024 **Merged by:** [@matt-fidd](https://github.com/matt-fidd) **Base:** `master` ← **Head:** `fix/escaping-in-templating` --- ### 📝 Commits (3) - [`cb0e0f5`](https://github.com/actualbudget/actual/commit/cb0e0f5a6757552e281cefe4c53372c26b98e69f) fix: escaping in action rule templating - [`0cead09`](https://github.com/actualbudget/actual/commit/0cead097ece354344ef5586ba9a6dfb2eacc7cd3) chore: release note - [`31da568`](https://github.com/actualbudget/actual/commit/31da568bbc66de043e4208eacae484a39ff6efa5) Merge branch 'master' into fix/escaping-in-templating ### 📊 Changes **3 files changed** (+19 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/server/accounts/rules.test.ts` (+10 -0) 📝 `packages/loot-core/src/server/accounts/rules.ts` (+3 -1) ➕ `upcoming-release-notes/3632.md` (+6 -0) </details> ### 📄 Description When having a value that uses for example `&` or `<` it is escaped. We don't render the content as plain html so this is not needed. Testcase: - have a rule that just sets notes to template `{{notes}}` - Create a transaction with `&` in the name notice the escape --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-28 21:03:59 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#4969