One little import I always add to ConnCase in my Phoenix projects: Plug.HTML.html_escape/1. It's really helpful when performing tests against rendered HTML, which may replace apostrophes with ' Should this be a default in ConnCase from Phoenix? #MyElixirStatus

Feb 14, 2025 · 3:04 PM UTC

3
9
43
1,781
Sort replies: Relevant Recent Liked
Replying to @RootCert
I have been struggling with this thanks I just refactored this ugly stuff > Docs hexdocs.pm/plug/Plug.HTML.ht…
2
72
Replying to @RootCert
I’d say it should really be part of the default ConnCase. Many hours lost trying to figure out why some tests failed. Specially for non English strings.
2
113