# Prevent escaping for single symbol inside macro body

**URL:** <https://discourse.julialang.org/t/prevent-escaping-for-single-symbol-inside-macro-body/89609>\
**Category:** General Usage\
**Tags:** macros, macro-hygiene\
**Created:** [November 1, 2022, 10:37am UTC](https://discourse.julialang.org/t/prevent-escaping-for-single-symbol-inside-macro-body/89609 "2022-11-01T10:37:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![disberd](https://avatars.discourse-cdn.com/v4/letter/d/8edcca/32.png) [@disberd](https://discourse.julialang.org/u/disberd)\
**Post date:** [November 1, 2022, 10:37am UTC](https://discourse.julialang.org/t/prevent-escaping-for-single-symbol-inside-macro-body/89609/1 "2022-11-01T10:37:12Z")

</div>

Is there a function or any other way to prevent escaping of a specific symbol when wrapping the expr returned by a macro with `esc()`?

I sometime want to have a few symbols within the macro body to be unescaped and it would be good to wrap that symbol(s) in something like `unescape(x)` and then escape the whole expression rather than manually escaping everything inside the expression except the unwanted symbols.
