Skip to content

Commit

Permalink
Merge pull request #837 from galdor/master
Browse files Browse the repository at this point in the history
disable html escaping in overlay templates
  • Loading branch information
ferd authored Nov 23, 2020
2 parents 9432b09 + 789e567 commit a24ec73
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rlx_util.erl
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ render(Template, Data) when is_list(Template) ->
render(rlx_util:to_binary(Template), Data);
render(Template, Data) when is_binary(Template) ->
case catch bbmustache:render(Template, Data,
[{key_type, atom}]) of
[{key_type, atom},
{escape_fun, fun(X) -> X end}]) of
Bin when is_binary(Bin) -> {ok, Bin};
_ -> {error, render_failed}
end.
Expand Down

0 comments on commit a24ec73

Please sign in to comment.