# SOLVED: 2.4.4: element-writing abilities strip every backslash from settings — CSS icons become "2197" and Code elements silently disappear

**URL:** <https://forum.bricksbuilder.io/t/solved-2-4-4-element-writing-abilities-strip-every-backslash-from-settings-css-icons-become-2197-and-code-elements-silently-disappear/40716>\
**Category:** Bugs\
**Tags:** v2-4-4\
**Created:** [October 28, 2026, 1:03pm UTC](https://forum.bricksbuilder.io/t/solved-2-4-4-element-writing-abilities-strip-every-backslash-from-settings-css-icons-become-2197-and-code-elements-silently-disappear/40716 "2026-10-28T13:03:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![roundedhexagon](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/roundedhexagon/32/3136_2.png) [@roundedhexagon](https://forum.bricksbuilder.io/u/roundedhexagon)\
**Post date:** [October 28, 2026, 1:03pm UTC](https://forum.bricksbuilder.io/t/solved-2-4-4-element-writing-abilities-strip-every-backslash-from-settings-css-icons-become-2197-and-code-elements-silently-disappear/40716/1 "2026-10-28T13:03:19Z")

</div>

Browser: Chrome 152  
OS: macOS

Hi guys! This one has been costing us silent breakage for a while, and I finally isolated it on 2.4.4.

Environment: Bricks 2.4.4, WordPress 7.1.3, through the Abilities API (reproduced with real MCP calls and with `wp_get_abilities()[…]->execute()`), as a non-administrator holding `bricks_full_access` and `bricks_execute_code`.

**What happens**

Every ability that writes page elements removes all backslashes from the element settings before saving:

| ability | sent | stored |
| --- | --- | --- |
| `set-page-elements` | `_cssCustom: "%root%::after{content:'\2197'}"` | `content: '2197'` |
| `set-page-elements` | `text: "x\y"` | `"xy"` |
| `update-element` | `_cssCustom: "#brxe-t00001::after{content:'\2197'}"` | `content: '2197'` |
| `batch-update-elements` | `text: "m\n"` (literal backslash) | `"mn"` |
| `add-element` | `text: "p\q"` | `"pq"` |
| `create-post` (with `elements`) | `text: "c\d"` | `"cd"` |

The paths that keep the backslash: `create-global-class` (`.x::after{content:'\2197'}` is stored intact) and `commit-html-css-page-import`, whose generated global class keeps it.

**Why it matters**

- A CSS icon written as `content:'\2197'` shows the literal text “2197” on the frontend instead of ↗.
- **Code elements disappear without a trace.** The signature is computed on the code as sent, but the stored code has its backslashes removed, so `verify_code_signature()` fails and the element renders nothing:

```auto
sent: <b>a\d</b> (executeCode: true)
stored: <b>ad</b>
verify_code_signature(stored signature, stored code) -> false
verify_code_signature(stored signature, sent code) -> true
render: <section …></section> (the code element is gone)

```

Any regex (`\d`, `\s`), PHP namespace (`\Bricks\…`) or escaped string in a Code element triggers this.

**Likely cause**

It looks like the classic `update_post_meta()` → `wp_unslash()` pitfall: the element tree is passed without `wp_slash()`. Global classes are stored with `update_option()`, which doesn’t unslash, which would explain why they’re unaffected.

**Suggested fix**

`wp_slash()` the element array before `update_post_meta()` in the shared element save path. If the signature is computed before saving, compute it on the value that’s actually stored.

Workaround for anyone hitting this: in CSS, write the literal character (`content:'↗'`) instead of an escape, and keep backslashes out of Code elements written through abilities.

---

<div class="post-metadata">

**Author:** ![Matej](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/matej/32/20184_2.png) [@Matej](https://forum.bricksbuilder.io/u/Matej)\
**Post date:** [October 28, 2026, 2:23pm UTC](https://forum.bricksbuilder.io/t/solved-2-4-4-element-writing-abilities-strip-every-backslash-from-settings-css-icons-become-2197-and-code-elements-silently-disappear/40716/3 "2026-10-28T14:23:29Z")

</div>

Hey @roundedhexagon,

Thanks for the report. We were able to replicate this issue and added it to our internal bug tracker. We’ll update this thread once it’s fixed.

Best regards,  
Matej

---

<div class="post-metadata">

**Author:** ![bricks.assistant](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/bricks.assistant/32/32537_2.png) [@bricks.assistant](https://forum.bricksbuilder.io/u/bricks.assistant)\
**Post date:** [November 3, 2026, 10:43am UTC](https://forum.bricksbuilder.io/t/solved-2-4-4-element-writing-abilities-strip-every-backslash-from-settings-css-icons-become-2197-and-code-elements-silently-disappear/40716/4 "2026-11-03T10:43:24Z")

</div>

We’ve addressed this in Bricks 2.4.5, now available as a one-click update in your WordPress Dashboard.

Please read the [changelog entry](https://bricksbuilder.io/release/bricks-2-4-5/) before updating, and let us know if you experience any issues.
