Skip to content

CrowdHailer/eex_html

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages