# EExHTML - safely embed content into HTML

**URL:** <https://forum.elixirforum.com/t/eexhtml-safely-embed-content-into-html/16503>\
**Category:** Announcing\
**Tags:** library, eex, web\
**Created:** [September 11, 2018, 8:03pm UTC](https://forum.elixirforum.com/t/eexhtml-safely-embed-content-into-html/16503 "2018-09-11T20:03:09Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![Crowdhailer](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/crowdhailer/32/2438_2.png) [@Crowdhailer](https://forum.elixirforum.com/u/Crowdhailer)\
**Post date:** [February 13, 2019, 2:04pm UTC](https://forum.elixirforum.com/t/eexhtml-safely-embed-content-into-html/16503/4 "2019-02-13T14:04:55Z")

</div>

### [0.2.1](https://hex.pm/packages/eex_html/0.2.1) Fix encoding of JavaScript variables.

No changes to API, reasoning is as follows.

Stop using `Jason.encode_to_iodata!` internally as this causes ambiguity when using `String.Chars` protocol, it is not possible to know if integers should be encoded as numbers or chardata.

---

_[View the full topic](https://forum.elixirforum.com/t/eexhtml-safely-embed-content-into-html/16503)._
