diff --git a/README.md b/README.md index d3ebfa7..bc13a4e 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,13 @@ # Runtime Contextual Autoescaper -A JRuby wrapper for [Mike Samuel's contextual HTML autoescaper](https://github.com/mikesamuel/html-contextual-autoescaper-java). A quick example of the escaper at work: +A JRuby wrapper for [Mike Samuel's contextual HTML autoescaper](https://github.com/mikesamuel/html-contextual-autoescaper-java). -```ruby -<% def helper(obj); "Hello, \#{obj['world']}"; end %> +## Example + +First, let's define an Erb template: + +```erb +<% def helper(obj); "Hello, #{obj['world']}"; end %>