Skip to content

Commit

Permalink
Document escape mode
Browse files Browse the repository at this point in the history
  • Loading branch information
jho406 committed Jun 19, 2023
1 parent 6eb5ca9 commit 771fdaf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -597,6 +597,11 @@ Props::BaseWithExtensions.class_eval do
end
```

## Escape mode

PropsTemplate runs OJ with `mode: :rails`, which escapes HTML and XML characters
such as `&` and `<`.

## Contributing

See the [CONTRIBUTING] document. Thank you, [contributors]!
Expand Down
1 change: 0 additions & 1 deletion lib/props_template/base.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require 'oj'
require 'active_support'
#todo: active_support/core_ext/string/output_safety.rb

module Props
class InvalidScopeForArrayError < StandardError; end
Expand Down

0 comments on commit 771fdaf

Please sign in to comment.