Skip to content

Extension to Embedded Elixir (EEx), that allows content to be safely embedded into HTML.

License

Notifications You must be signed in to change notification settings

ejc123/eex_html

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EExHTML

Extension to Embedded Elixir (EEx), that allows content to be safely embedded into HTML.

Hex pm Build Status License

Usage

iex> title = "EEx Rocks!"
iex> content = ~E"<h1><%= title %></h1>"
iex> "#{content}"
"<h1>EEx Rocks!</h1>"

iex> title = "<script>"
iex> content = ~E"<h1><%= title %></h1>"
iex> "#{content}"
"<h1>&lt;script&gt;</h1>"

Elixir language proposal

I would like to see this project as part of the Elixir language. The reasons for this are explained in this proposal.

About

Extension to Embedded Elixir (EEx), that allows content to be safely embedded into HTML.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Elixir 100.0%