Closed kevinwo closed 6 years ago
When defp raw_html([string | tail], html) when is_binary(string) attempts to use HtmlEntities.encode/1, it cannot be found:
defp raw_html([string | tail], html) when is_binary(string)
(exit) an exception was raised: (UndefinedFunctionError) function HtmlEntities.encode/1 is undefined (module HtmlEntities is not available) HtmlEntities.encode("Text") (floki) lib/floki.ex:114: Floki.raw_html/2 (floki) lib/floki.ex:157: Floki.tag_for/3 (floki) lib/floki.ex:136: Floki.raw_html/2 (floki) lib/floki.ex:157: Floki.tag_for/3 (floki) lib/floki.ex:136: Floki.raw_html/2 (floki) lib/floki.ex:158: Floki.tag_for/3 (floki) lib/floki.ex:136: Floki.raw_html/2
Things run just fine locally on dev, but seem to run into the above issue on production deployment.
Hi @kevinwo! The PR #165 should fix the problem. I will release a new version very soon. Thanks!
@kevinwo please try again with version 0.19.3. It should work now.
0.19.3
When
defp raw_html([string | tail], html) when is_binary(string)
attempts to use HtmlEntities.encode/1, it cannot be found:Things run just fine locally on dev, but seem to run into the above issue on production deployment.