# Global string substitution?

**URL:** <https://discourse.cakephp.org/t/global-string-substitution/758>\
**Category:** Need Help\
**Created:** [July 19, 2016, 11:53pm UTC](https://discourse.cakephp.org/t/global-string-substitution/758 "2016-07-19T23:53:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![calzone](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/calzone/32/305_2.png) [@calzone](https://discourse.cakephp.org/u/calzone)\
**Post date:** [July 19, 2016, 11:53pm UTC](https://discourse.cakephp.org/t/global-string-substitution/758/1 "2016-07-19T23:53:18Z")

</div>

Does anyone know of a blanket means in CakePHP 3x to force an html entity (string a) to be used instead of a given character (string b) every single time the raw character (string b) is printed from a view without me having to specifically treat every echo statement?

I’m specifically looking to replace ä with `&auml;` because the raw ä is rendered incorrectly in browsers for some reason (weight and spacing gets messed up). I see other characters automatically treated (i.e., newlines and ampersands)… so someplace in the code deals with this already… but I’m not feeling gutsy enough to blindly muck around with the base code.

---

<div class="post-metadata">

**Author:** ![raul338](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/raul338/32/69_2.png) [@raul338](https://discourse.cakephp.org/u/raul338)\
**Post date:** [July 20, 2016, 3:12am UTC](https://discourse.cakephp.org/t/global-string-substitution/758/2 "2016-07-20T03:12:46Z")

</div>

Are you using h() or helpers methods that support it? If that so, you can open a issue in the repo to handle it.

---

<div class="post-metadata">

**Author:** ![calzone](https://yyz1.discourse-cdn.com/flex029/user_avatar/discourse.cakephp.org/calzone/32/305_2.png) [@calzone](https://discourse.cakephp.org/u/calzone)\
**Post date:** [July 20, 2016, 3:42am UTC](https://discourse.cakephp.org/t/global-string-substitution/758/3 "2016-07-20T03:42:08Z")

</div>

Yeah. It’s wrapped in an autoParagraph() and h().
