# Html encode data

**URL:** <https://forum.alumio.com/t/html-encode-data/1219>\
**Category:** General\
**Created:** [July 11, 2024, 2:56pm UTC](https://forum.alumio.com/t/html-encode-data/1219 "2024-07-11T14:56:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jesse.wever](https://forum.alumio.com/user_avatar/forum.alumio.com/jesse.wever/32/296_2.png) [@jesse.wever](https://forum.alumio.com/u/jesse.wever)\
**Post date:** [July 11, 2024, 2:56pm UTC](https://forum.alumio.com/t/html-encode-data/1219/1 "2024-07-11T14:56:05Z")

</div>

Hi all,  
For one of the integrations i’m making using Alumio i have to sent a xml message with its data html encoded;  
Currently when serializing to xml i get:

```auto
<ITEMDESCRIPTION><![CDATA[black & white]]></ITEMDESCRIPTION>

```

but i want:

```auto
<ITEMDESCRIPTION>black &amp; white</ITEMDESCRIPTION>

```

Does anyone know to html encode all the lines before serializing the data to xml?

thank you in advanced,  
Jesse

---

<div class="post-metadata">

**Author:** ![Gugi](https://forum.alumio.com/user_avatar/forum.alumio.com/gugi/32/236_2.png) [@Gugi](https://forum.alumio.com/u/Gugi)\
**Post date:** [July 15, 2024, 7:33am UTC](https://forum.alumio.com/t/html-encode-data/1219/2 "2024-07-15T07:33:12Z")

</div>

Hi @jesse.wever,

We will check this with the team and let you know once we have an update.

In the meantime, could you please let us know whether this issue is blocking your integration?

---

<div class="post-metadata">

**Author:** ![jesse.wever](https://forum.alumio.com/user_avatar/forum.alumio.com/jesse.wever/32/296_2.png) [@jesse.wever](https://forum.alumio.com/u/jesse.wever)\
**Post date:** [July 15, 2024, 9:38am UTC](https://forum.alumio.com/t/html-encode-data/1219/4 "2024-07-15T09:38:05Z")

</div>

thank you,  
Yes it is blocking, since the receiving party is very strict in how they receive the message

---

<div class="post-metadata">

**Author:** ![Gugi](https://forum.alumio.com/user_avatar/forum.alumio.com/gugi/32/236_2.png) [@Gugi](https://forum.alumio.com/u/Gugi)\
**Post date:** [July 16, 2024, 7:44am UTC](https://forum.alumio.com/t/html-encode-data/1219/5 "2024-07-16T07:44:17Z")

</div>

Thank you for letting us know.

We have passed the issue on to the team for further discussion. We will keep you posted on any updates.

---

<div class="post-metadata">

**Author:** ![Gugi](https://forum.alumio.com/user_avatar/forum.alumio.com/gugi/32/236_2.png) [@Gugi](https://forum.alumio.com/u/Gugi)\
**Post date:** [August 30, 2024, 7:10am UTC](https://forum.alumio.com/t/html-encode-data/1219/8 "2024-08-30T07:10:41Z")

</div>

Hi @jesse.wever,

We would like to inform you that we have released [3.68.0-RC1](https://forum.alumio.com/t/alumio-version-3-68-0-rc1/1286), which includes the functionality to disable CDATA wrapping in XML serializing. It also includes a mapper to HTML-encode a string.

Please give it a try and let us know if you find any issues.
