Phoenix.HTML gives a ~E function that processes EEX strings in your code.

Screenshot from the ElixirConf2018 Keynote by Chris McCord.