We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 147743e commit 857569aCopy full SHA for 857569a
lib/fulfil/concerns/html_entity_handler.rb
@@ -2,6 +2,21 @@
2
3
module Fulfil
4
module Concerns
5
+ # Handles HTML entity escaping in JSON serialization
6
+ # This module provides methods to temporarily disable and re-enable HTML entity escaping
7
+ # when working with ActiveSupport's JSON encoding, which is particularly useful when
8
+ # dealing with special characters in API requests.
9
+ #
10
+ # @example
11
+ # class MyParser
12
+ # include Concerns::HtmlEntityHandler
13
14
+ # def parse_data
15
+ # with_disabled_html_entities do
16
+ # # Your code here that needs HTML entities disabled
17
+ # end
18
19
20
module HtmlEntityHandler
21
private
22
0 commit comments