# Custom Field for Contact containing HTML

**URL:** <https://forum.mautic.org/t/custom-field-for-contact-containing-html/9812>\
**Category:** General Discussion\
**Created:** [October 31, 2017, 3:28pm UTC](https://forum.mautic.org/t/custom-field-for-contact-containing-html/9812 "2017-10-31T15:28:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mikkelelliot](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@mikkelelliot](https://forum.mautic.org/u/mikkelelliot)\
**Post date:** [October 31, 2017, 3:28pm UTC](https://forum.mautic.org/t/custom-field-for-contact-containing-html/9812/1 "2017-10-31T15:28:53Z")

</div>

I have created a Custom Field / Label for a customer where I insert some HTML case: **Test**  
  
But when i include this field in my mail mautic strips HTML tags so I’m left with “Test” only  
  
  
  
Any way for Mautic not to strip HTML tags?

---

<div class="post-metadata">

**Author:** ![mikkelelliot](https://avatars.discourse-cdn.com/v4/letter/m/e9bcb4/32.png) [@mikkelelliot](https://forum.mautic.org/u/mikkelelliot)\
**Post date:** [October 31, 2017, 3:28pm UTC](https://forum.mautic.org/t/custom-field-for-contact-containing-html/9812/2 "2017-10-31T15:28:53Z")

</div>

I have created a Custom Field / Label for a customer where I insert some HTML case: **Test**  
But when i include this field in my mail mautic strips HTML tags so I’m left with “Test” only

Any way for Mautic not to strip HTML tags?

---

<div class="post-metadata">

**Author:** ![steverobinson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/steverobinson/32/174_2.png) [@steverobinson](https://forum.mautic.org/u/steverobinson)\
**Post date:** [August 21, 2020, 6:31pm UTC](https://forum.mautic.org/t/custom-field-for-contact-containing-html/9812/3 "2020-08-21T18:31:17Z")

</div>

Same problem here. Looking for a solution…

---

<div class="post-metadata">

**Author:** ![gary.harrison](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/gary.harrison/32/2864_2.png) [@gary.harrison](https://forum.mautic.org/u/gary.harrison)\
**Post date:** [August 22, 2020, 7:48pm UTC](https://forum.mautic.org/t/custom-field-for-contact-containing-html/9812/4 "2020-08-22T19:48:58Z")

</div>

We posted the same question last month 🙂

What we did was encode the html in base64 and use this plugin to decode the base64 in the template.

> **[mtcextendee/mautic-custom-tags-bundle](https://github.com/mtcextendee/mautic-custom-tags-bundle)**
>
> Custom tags for Mautic . Contribute to mtcextendee/mautic-custom-tags-bundle development by creating an account on GitHub.

---

<div class="post-metadata">

**Author:** ![steverobinson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/steverobinson/32/174_2.png) [@steverobinson](https://forum.mautic.org/u/steverobinson)\
**Post date:** [August 24, 2020, 2:18pm UTC](https://forum.mautic.org/t/custom-field-for-contact-containing-html/9812/5 "2020-08-24T14:18:09Z")

</div>

@kuzmany’s [MauticCustomTags plugin](https://github.com/mtcextendee/mautic-custom-tags-bundle) worked great. Thanks, @gary.harrison for the tip!
