acts-as-messageable 0.4.11 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (228) hide show
  1. checksums.yaml +4 -4
  2. data/.dockerignore +1 -0
  3. data/.github/dependabot.yml +8 -0
  4. data/.github/workflows/test.yml +152 -0
  5. data/.rubocop.yml +32 -0
  6. data/.rubocop_todo.yml +75 -0
  7. data/.ruby-version +1 -0
  8. data/Appraisals +35 -11
  9. data/Dockerfile +14 -0
  10. data/Gemfile +22 -9
  11. data/Gemfile.lock +210 -90
  12. data/README.md +31 -14
  13. data/Rakefile +10 -1
  14. data/VERSION +1 -1
  15. data/acts-as-messageable.gemspec +225 -59
  16. data/bin/tapioca +29 -0
  17. data/docker-compose.yml +84 -0
  18. data/gemfiles/rails_3.2.gemfile +22 -10
  19. data/gemfiles/rails_4.2.gemfile +29 -0
  20. data/gemfiles/rails_5.2.gemfile +22 -10
  21. data/gemfiles/rails_6.0.gemfile +22 -10
  22. data/gemfiles/rails_7.0.gemfile +29 -0
  23. data/gemfiles/rails_master.gemfile +29 -0
  24. data/lib/acts-as-messageable.rb +3 -17
  25. data/lib/acts_as_messageable/message.rb +136 -0
  26. data/lib/acts_as_messageable/model.rb +229 -0
  27. data/lib/acts_as_messageable/rails3.rb +46 -0
  28. data/lib/acts_as_messageable/rails4.rb +54 -0
  29. data/lib/acts_as_messageable/rails6.rb +63 -0
  30. data/lib/acts_as_messageable/railtie.rb +12 -0
  31. data/lib/acts_as_messageable/relation.rb +35 -0
  32. data/lib/acts_as_messageable/scopes.rb +53 -0
  33. data/lib/acts_as_messageable.rb +41 -0
  34. data/lib/generators/acts_as_messageable/migration/migration_generator.rb +48 -0
  35. data/lib/generators/{acts-as-messageable → acts_as_messageable}/migration/templates/migration.rb +4 -3
  36. data/lib/generators/acts_as_messageable/migration/templates/migration_indexes.rb +12 -0
  37. data/lib/generators/acts_as_messageable/migration/templates/migration_opened_as_datetime.rb +16 -0
  38. data/lib/generators/{acts-as-messageable → acts_as_messageable}/migration/templates/migration_permanent.rb +2 -1
  39. data/sorbet/config +4 -0
  40. data/sorbet/rbi/annotations/actionpack.rbi +428 -0
  41. data/sorbet/rbi/annotations/actionview.rbi +77 -0
  42. data/sorbet/rbi/annotations/activerecord.rbi +18 -0
  43. data/sorbet/rbi/annotations/activesupport.rbi +52 -0
  44. data/sorbet/rbi/annotations/faraday.rbi +17 -0
  45. data/sorbet/rbi/annotations/railties.rbi +58 -0
  46. data/sorbet/rbi/annotations/rainbow.rbi +269 -0
  47. data/sorbet/rbi/dsl/abstract_controller/caching/fragments.rbi +23 -0
  48. data/sorbet/rbi/dsl/abstract_controller/caching.rbi +30 -0
  49. data/sorbet/rbi/dsl/abstract_controller/callbacks.rbi +23 -0
  50. data/sorbet/rbi/dsl/abstract_controller/helpers.rbi +23 -0
  51. data/sorbet/rbi/dsl/abstract_controller/rendering.rbi +9 -0
  52. data/sorbet/rbi/dsl/abstract_controller/url_for.rbi +23 -0
  53. data/sorbet/rbi/dsl/action_controller/caching.rbi +29 -0
  54. data/sorbet/rbi/dsl/action_controller/conditional_get.rbi +23 -0
  55. data/sorbet/rbi/dsl/action_controller/content_security_policy.rbi +31 -0
  56. data/sorbet/rbi/dsl/action_controller/data_streaming.rbi +9 -0
  57. data/sorbet/rbi/dsl/action_controller/etag_with_flash.rbi +24 -0
  58. data/sorbet/rbi/dsl/action_controller/etag_with_template_digest.rbi +30 -0
  59. data/sorbet/rbi/dsl/action_controller/flash.rbi +19 -0
  60. data/sorbet/rbi/dsl/action_controller/form_builder.rbi +19 -0
  61. data/sorbet/rbi/dsl/action_controller/helpers.rbi +36 -0
  62. data/sorbet/rbi/dsl/action_controller/params_wrapper.rbi +23 -0
  63. data/sorbet/rbi/dsl/action_controller/redirecting.rbi +24 -0
  64. data/sorbet/rbi/dsl/action_controller/renderers/all.rbi +24 -0
  65. data/sorbet/rbi/dsl/action_controller/renderers.rbi +23 -0
  66. data/sorbet/rbi/dsl/action_controller/request_forgery_protection.rbi +31 -0
  67. data/sorbet/rbi/dsl/action_controller/rescue.rbi +24 -0
  68. data/sorbet/rbi/dsl/action_controller/test_case/behavior.rbi +24 -0
  69. data/sorbet/rbi/dsl/action_controller/url_for.rbi +24 -0
  70. data/sorbet/rbi/dsl/action_dispatch/routing/url_for.rbi +23 -0
  71. data/sorbet/rbi/dsl/action_view/helpers/form_helper.rbi +10 -0
  72. data/sorbet/rbi/dsl/action_view/helpers/form_tag_helper.rbi +10 -0
  73. data/sorbet/rbi/dsl/action_view/helpers/text_helper.rbi +9 -0
  74. data/sorbet/rbi/dsl/action_view/helpers.rbi +10 -0
  75. data/sorbet/rbi/dsl/action_view/layouts.rbi +24 -0
  76. data/sorbet/rbi/dsl/action_view/rendering.rbi +9 -0
  77. data/sorbet/rbi/dsl/active_model/attribute_methods.rbi +27 -0
  78. data/sorbet/rbi/dsl/active_model/attributes.rbi +34 -0
  79. data/sorbet/rbi/dsl/active_model/dirty.rbi +28 -0
  80. data/sorbet/rbi/dsl/active_model/serializers/json.rbi +22 -0
  81. data/sorbet/rbi/dsl/active_model/validations/callbacks.rbi +22 -0
  82. data/sorbet/rbi/dsl/active_model/validations.rbi +27 -0
  83. data/sorbet/rbi/dsl/active_record/attribute_methods/dirty.rbi +38 -0
  84. data/sorbet/rbi/dsl/active_record/attribute_methods/time_zone_conversion.rbi +32 -0
  85. data/sorbet/rbi/dsl/active_record/attribute_methods.rbi +53 -0
  86. data/sorbet/rbi/dsl/active_record/attributes.rbi +19 -0
  87. data/sorbet/rbi/dsl/active_record/callbacks.rbi +22 -0
  88. data/sorbet/rbi/dsl/active_record/core.rbi +55 -0
  89. data/sorbet/rbi/dsl/active_record/encryption/encryptable_record.rbi +23 -0
  90. data/sorbet/rbi/dsl/active_record/inheritance.rbi +27 -0
  91. data/sorbet/rbi/dsl/active_record/integration.rbi +32 -0
  92. data/sorbet/rbi/dsl/active_record/locking/optimistic.rbi +22 -0
  93. data/sorbet/rbi/dsl/active_record/model_schema.rbi +52 -0
  94. data/sorbet/rbi/dsl/active_record/nested_attributes.rbi +22 -0
  95. data/sorbet/rbi/dsl/active_record/readonly_attributes.rbi +19 -0
  96. data/sorbet/rbi/dsl/active_record/reflection.rbi +32 -0
  97. data/sorbet/rbi/dsl/active_record/scoping/default.rbi +23 -0
  98. data/sorbet/rbi/dsl/active_record/scoping.rbi +23 -0
  99. data/sorbet/rbi/dsl/active_record/serialization.rbi +22 -0
  100. data/sorbet/rbi/dsl/active_record/signed_id.rbi +22 -0
  101. data/sorbet/rbi/dsl/active_record/test_fixtures.rbi +58 -0
  102. data/sorbet/rbi/dsl/active_record/timestamp.rbi +23 -0
  103. data/sorbet/rbi/dsl/active_record/validations.rbi +28 -0
  104. data/sorbet/rbi/dsl/active_support/actionable_error.rbi +23 -0
  105. data/sorbet/rbi/dsl/active_support/callbacks.rbi +22 -0
  106. data/sorbet/rbi/dsl/active_support/rescuable.rbi +23 -0
  107. data/sorbet/rbi/dsl/active_support/testing/file_fixtures.rbi +22 -0
  108. data/sorbet/rbi/gems/actionpack@7.0.4.3.rbi +19265 -0
  109. data/sorbet/rbi/gems/actionview@7.0.4.3.rbi +15482 -0
  110. data/sorbet/rbi/gems/activemodel@7.0.4.3.rbi +6025 -0
  111. data/sorbet/rbi/gems/activerecord@7.0.4.3.rbi +37852 -0
  112. data/sorbet/rbi/gems/activesupport@7.0.4.3.rbi +18788 -0
  113. data/sorbet/rbi/gems/addressable@2.4.0.rbi +8 -0
  114. data/sorbet/rbi/gems/appraisal@2.4.1.rbi +584 -0
  115. data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
  116. data/sorbet/rbi/gems/builder@3.2.4.rbi +8 -0
  117. data/sorbet/rbi/gems/coderay@1.1.3.rbi +3426 -0
  118. data/sorbet/rbi/gems/commander@4.6.0.rbi +8 -0
  119. data/sorbet/rbi/gems/concurrent-ruby@1.2.2.rbi +11545 -0
  120. data/sorbet/rbi/gems/coveralls_reborn@0.27.0.rbi +8 -0
  121. data/sorbet/rbi/gems/crass@1.0.6.rbi +622 -0
  122. data/sorbet/rbi/gems/descendants_tracker@0.0.4.rbi +8 -0
  123. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1079 -0
  124. data/sorbet/rbi/gems/docile@1.4.0.rbi +8 -0
  125. data/sorbet/rbi/gems/erubi@1.12.0.rbi +146 -0
  126. data/sorbet/rbi/gems/faraday@0.9.2.rbi +964 -0
  127. data/sorbet/rbi/gems/git@1.11.0.rbi +2700 -0
  128. data/sorbet/rbi/gems/github_api@0.16.0.rbi +8 -0
  129. data/sorbet/rbi/gems/hashie@5.0.0.rbi +8 -0
  130. data/sorbet/rbi/gems/highline@2.0.3.rbi +8 -0
  131. data/sorbet/rbi/gems/i18n@1.12.0.rbi +2296 -0
  132. data/sorbet/rbi/gems/jeweler@2.3.9.rbi +1591 -0
  133. data/sorbet/rbi/gems/json@2.6.3.rbi +1541 -0
  134. data/sorbet/rbi/gems/jwt@2.5.0.rbi +8 -0
  135. data/sorbet/rbi/gems/loofah@2.19.1.rbi +904 -0
  136. data/sorbet/rbi/gems/method_source@1.0.0.rbi +272 -0
  137. data/sorbet/rbi/gems/mime-types@2.99.3.rbi +8 -0
  138. data/sorbet/rbi/gems/minitest@5.18.0.rbi +1491 -0
  139. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +8 -0
  140. data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +8 -0
  141. data/sorbet/rbi/gems/multipart-post@2.2.3.rbi +8 -0
  142. data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
  143. data/sorbet/rbi/gems/nokogiri@1.14.2.rbi +7244 -0
  144. data/sorbet/rbi/gems/oauth2@1.4.8.rbi +8 -0
  145. data/sorbet/rbi/gems/parallel@1.22.1.rbi +277 -0
  146. data/sorbet/rbi/gems/pg@1.4.6.rbi +2574 -0
  147. data/sorbet/rbi/gems/polyfill@1.9.0.rbi +8 -0
  148. data/sorbet/rbi/gems/pry@0.14.2.rbi +10081 -0
  149. data/sorbet/rbi/gems/psych@4.0.6.rbi +1819 -0
  150. data/sorbet/rbi/gems/racc@1.6.2.rbi +155 -0
  151. data/sorbet/rbi/gems/rack-test@2.0.2.rbi +943 -0
  152. data/sorbet/rbi/gems/rack@2.2.6.4.rbi +5659 -0
  153. data/sorbet/rbi/gems/rails-dom-testing@2.0.3.rbi +455 -0
  154. data/sorbet/rbi/gems/rails-html-sanitizer@1.5.0.rbi +685 -0
  155. data/sorbet/rbi/gems/railties@7.0.4.3.rbi +4553 -0
  156. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +8 -0
  157. data/sorbet/rbi/gems/rake@13.0.6.rbi +2959 -0
  158. data/sorbet/rbi/gems/rbi@0.0.16.rbi +3008 -0
  159. data/sorbet/rbi/gems/rbs@2.8.0.rbi +8 -0
  160. data/sorbet/rbi/gems/rchardet@1.8.0.rbi +1078 -0
  161. data/sorbet/rbi/gems/rdoc@6.5.0.rbi +12441 -0
  162. data/sorbet/rbi/gems/regexp_parser@2.7.0.rbi +8 -0
  163. data/sorbet/rbi/gems/rexml@3.2.5.rbi +8 -0
  164. data/sorbet/rbi/gems/rspec-core@3.12.0.rbi +10798 -0
  165. data/sorbet/rbi/gems/rspec-expectations@3.12.0.rbi +8090 -0
  166. data/sorbet/rbi/gems/rspec-mocks@3.12.0.rbi +5296 -0
  167. data/sorbet/rbi/gems/rspec-support@3.12.0.rbi +1617 -0
  168. data/sorbet/rbi/gems/rspec@3.12.0.rbi +88 -0
  169. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +8 -0
  170. data/sorbet/rbi/gems/safe_type@1.1.1.rbi +8 -0
  171. data/sorbet/rbi/gems/semver2@3.4.2.rbi +8 -0
  172. data/sorbet/rbi/gems/simplecov-html@0.12.3.rbi +8 -0
  173. data/sorbet/rbi/gems/simplecov@0.22.0.rbi +8 -0
  174. data/sorbet/rbi/gems/simplecov_json_formatter@0.1.4.rbi +8 -0
  175. data/sorbet/rbi/gems/sorbet-coerce@0.7.0.rbi +8 -0
  176. data/sorbet/rbi/gems/stringio@3.0.2.rbi +8 -0
  177. data/sorbet/rbi/gems/sync@0.5.0.rbi +8 -0
  178. data/sorbet/rbi/gems/term-ansicolor@1.7.1.rbi +8 -0
  179. data/sorbet/rbi/gems/thor@1.2.1.rbi +3956 -0
  180. data/sorbet/rbi/gems/thread_safe@0.3.6.rbi +8 -0
  181. data/sorbet/rbi/gems/timecop@0.9.6.rbi +361 -0
  182. data/sorbet/rbi/gems/tins@1.32.1.rbi +8 -0
  183. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5917 -0
  184. data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +8 -0
  185. data/sorbet/rbi/gems/unparser@0.6.7.rbi +4515 -0
  186. data/sorbet/rbi/gems/webrick@1.7.0.rbi +2553 -0
  187. data/sorbet/rbi/gems/yard@0.9.28.rbi +17954 -0
  188. data/sorbet/rbi/gems/zeitwerk@2.6.7.rbi +966 -0
  189. data/sorbet/rbi/models/acts-as-messageable/message.rbi +668 -0
  190. data/sorbet/rbi/models/acts-as-messageable/user.rbi +343 -0
  191. data/sorbet/rbi/rails-rbi/active_record_base.rbi +119 -0
  192. data/sorbet/rbi/rails-rbi/active_record_relation.rbi +180 -0
  193. data/sorbet/rbi/shims/activerecord.rbi +4 -0
  194. data/sorbet/rbi/shims/model.rbi +9 -0
  195. data/sorbet/tapioca/config.yml +10 -0
  196. data/sorbet/tapioca/pre_require.rb +5 -0
  197. data/sorbet/tapioca/require.rb +10 -0
  198. data/spec/{acts-as-messageable_spec.rb → acts_as_messageable_spec.rb} +80 -5
  199. data/spec/{custom-class_spec.rb → custom_class_spec.rb} +15 -5
  200. data/spec/{custom-required_spec.rb → custom_required_spec.rb} +10 -4
  201. data/spec/{group-messages_spec.rb → group_messages_spec.rb} +5 -2
  202. data/spec/migrations_spec.rb +76 -0
  203. data/spec/spec_helper.rb +44 -41
  204. data/spec/support/admin.rb +5 -0
  205. data/spec/support/custom_message.rb +8 -0
  206. data/spec/support/custom_message_uuid.rb +6 -0
  207. data/spec/support/custom_search_user.rb +8 -0
  208. data/spec/support/men.rb +7 -0
  209. data/spec/support/send_message.rb +10 -1
  210. data/spec/support/table_schema.rb +36 -0
  211. data/spec/support/user.rb +5 -3
  212. data/spec/support/uuid_user.rb +9 -0
  213. data/tasks/types.rake +46 -0
  214. metadata +371 -39
  215. data/.travis.yml +0 -19
  216. data/gemfiles/rails_3.2.gemfile.lock +0 -153
  217. data/gemfiles/rails_4.2.11.gemfile +0 -16
  218. data/gemfiles/rails_4.2.11.gemfile.lock +0 -157
  219. data/gemfiles/rails_5.2.gemfile.lock +0 -155
  220. data/gemfiles/rails_6.0.gemfile.lock +0 -155
  221. data/lib/acts-as-messageable/message.rb +0 -62
  222. data/lib/acts-as-messageable/model.rb +0 -181
  223. data/lib/acts-as-messageable/rails3.rb +0 -19
  224. data/lib/acts-as-messageable/rails4.rb +0 -23
  225. data/lib/acts-as-messageable/railtie.rb +0 -13
  226. data/lib/acts-as-messageable/relation.rb +0 -17
  227. data/lib/acts-as-messageable/scopes.rb +0 -38
  228. data/lib/generators/acts-as-messageable/migration/migration_generator.rb +0 -30
@@ -0,0 +1,685 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `rails-html-sanitizer` gem.
5
+ # Please instead update this file by running `bin/tapioca gem rails-html-sanitizer`.
6
+
7
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#30
8
+ module ActionView
9
+ class << self
10
+ # source://actionview/7.0.4.2/lib/action_view.rb#90
11
+ def eager_load!; end
12
+
13
+ # Returns the currently loaded version of Action View as a <tt>Gem::Version</tt>.
14
+ #
15
+ # source://actionview/7.0.4.2/lib/action_view/gem_version.rb#5
16
+ def gem_version; end
17
+
18
+ # Returns the currently loaded version of Action View as a <tt>Gem::Version</tt>.
19
+ #
20
+ # source://actionview/7.0.4.2/lib/action_view/version.rb#7
21
+ def version; end
22
+ end
23
+ end
24
+
25
+ # source://actionview/7.0.4.2/lib/action_view.rb#33
26
+ ActionView::ENCODING_FLAG = T.let(T.unsafe(nil), String)
27
+
28
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#31
29
+ module ActionView::Helpers
30
+ include ::ActionView::Helpers::SanitizeHelper
31
+ include ::ActionView::Helpers::TextHelper
32
+ include ::ActionView::Helpers::UrlHelper
33
+ include ::ActionView::Helpers::SanitizeHelper
34
+ include ::ActionView::Helpers::TextHelper
35
+ include ::ActionView::Helpers::FormTagHelper
36
+ include ::ActionView::Helpers::FormHelper
37
+ include ::ActionView::Helpers::TranslationHelper
38
+
39
+ mixes_in_class_methods ::ActionView::Helpers::UrlHelper::ClassMethods
40
+ mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods
41
+
42
+ class << self
43
+ # source://actionview/7.0.4.2/lib/action_view/helpers.rb#34
44
+ def eager_load!; end
45
+ end
46
+ end
47
+
48
+ # The SanitizeHelper module provides a set of methods for scrubbing text of undesired HTML elements.
49
+ # These helper methods extend Action View making them callable within your template files.
50
+ #
51
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#32
52
+ module ActionView::Helpers::SanitizeHelper
53
+ mixes_in_class_methods ::ActionView::Helpers::SanitizeHelper::ClassMethods
54
+
55
+ # Sanitizes HTML input, stripping all but known-safe tags and attributes.
56
+ #
57
+ # It also strips href/src attributes with unsafe protocols like
58
+ # <tt>javascript:</tt>, while also protecting against attempts to use Unicode,
59
+ # ASCII, and hex character references to work around these protocol filters.
60
+ # All special characters will be escaped.
61
+ #
62
+ # The default sanitizer is Rails::Html::SafeListSanitizer. See {Rails HTML
63
+ # Sanitizers}[https://github.com/rails/rails-html-sanitizer] for more information.
64
+ #
65
+ # Custom sanitization rules can also be provided.
66
+ #
67
+ # Please note that sanitizing user-provided text does not guarantee that the
68
+ # resulting markup is valid or even well-formed.
69
+ #
70
+ # ==== Options
71
+ #
72
+ # * <tt>:tags</tt> - An array of allowed tags.
73
+ # * <tt>:attributes</tt> - An array of allowed attributes.
74
+ # * <tt>:scrubber</tt> - A {Rails::Html scrubber}[https://github.com/rails/rails-html-sanitizer]
75
+ # or {Loofah::Scrubber}[https://github.com/flavorjones/loofah] object that
76
+ # defines custom sanitization rules. A custom scrubber takes precedence over
77
+ # custom tags and attributes.
78
+ #
79
+ # ==== Examples
80
+ #
81
+ # Normal use:
82
+ #
83
+ # <%= sanitize @comment.body %>
84
+ #
85
+ # Providing custom lists of permitted tags and attributes:
86
+ #
87
+ # <%= sanitize @comment.body, tags: %w(strong em a), attributes: %w(href) %>
88
+ #
89
+ # Providing a custom Rails::Html scrubber:
90
+ #
91
+ # class CommentScrubber < Rails::Html::PermitScrubber
92
+ # def initialize
93
+ # super
94
+ # self.tags = %w( form script comment blockquote )
95
+ # self.attributes = %w( style )
96
+ # end
97
+ #
98
+ # def skip_node?(node)
99
+ # node.text?
100
+ # end
101
+ # end
102
+ #
103
+ # <%= sanitize @comment.body, scrubber: CommentScrubber.new %>
104
+ #
105
+ # See {Rails HTML Sanitizer}[https://github.com/rails/rails-html-sanitizer] for
106
+ # documentation about Rails::Html scrubbers.
107
+ #
108
+ # Providing a custom Loofah::Scrubber:
109
+ #
110
+ # scrubber = Loofah::Scrubber.new do |node|
111
+ # node.remove if node.name == 'script'
112
+ # end
113
+ #
114
+ # <%= sanitize @comment.body, scrubber: scrubber %>
115
+ #
116
+ # See {Loofah's documentation}[https://github.com/flavorjones/loofah] for more
117
+ # information about defining custom Loofah::Scrubber objects.
118
+ #
119
+ # To set the default allowed tags or attributes across your application:
120
+ #
121
+ # # In config/application.rb
122
+ # config.action_view.sanitized_allowed_tags = ['strong', 'em', 'a']
123
+ # config.action_view.sanitized_allowed_attributes = ['href', 'title']
124
+ #
125
+ # source://actionview/7.0.4.2/lib/action_view/helpers/sanitize_helper.rb#81
126
+ def sanitize(html, options = T.unsafe(nil)); end
127
+
128
+ # Sanitizes a block of CSS code. Used by +sanitize+ when it comes across a style attribute.
129
+ #
130
+ # source://actionview/7.0.4.2/lib/action_view/helpers/sanitize_helper.rb#86
131
+ def sanitize_css(style); end
132
+
133
+ # Strips all link tags from +html+ leaving just the link text.
134
+ #
135
+ # strip_links('<a href="http://www.rubyonrails.org">Ruby on Rails</a>')
136
+ # # => Ruby on Rails
137
+ #
138
+ # strip_links('Please e-mail me at <a href="mailto:me@email.com">me@email.com</a>.')
139
+ # # => Please e-mail me at me@email.com.
140
+ #
141
+ # strip_links('Blog: <a href="http://www.myblog.com/" class="nav" target=\"_blank\">Visit</a>.')
142
+ # # => Blog: Visit.
143
+ #
144
+ # strip_links('<<a href="https://example.org">malformed & link</a>')
145
+ # # => &lt;malformed &amp; link
146
+ #
147
+ # source://actionview/7.0.4.2/lib/action_view/helpers/sanitize_helper.rb#120
148
+ def strip_links(html); end
149
+
150
+ # Strips all HTML tags from +html+, including comments and special characters.
151
+ #
152
+ # strip_tags("Strip <i>these</i> tags!")
153
+ # # => Strip these tags!
154
+ #
155
+ # strip_tags("<b>Bold</b> no more! <a href='more.html'>See more here</a>...")
156
+ # # => Bold no more! See more here...
157
+ #
158
+ # strip_tags("<div id='top-bar'>Welcome to my website!</div>")
159
+ # # => Welcome to my website!
160
+ #
161
+ # strip_tags("> A quote from Smith & Wesson")
162
+ # # => &gt; A quote from Smith &amp; Wesson
163
+ #
164
+ # source://actionview/7.0.4.2/lib/action_view/helpers/sanitize_helper.rb#103
165
+ def strip_tags(html); end
166
+ end
167
+
168
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#33
169
+ module ActionView::Helpers::SanitizeHelper::ClassMethods
170
+ # Gets the Rails::Html::FullSanitizer instance used by +strip_tags+. Replace with
171
+ # any object that responds to +sanitize+.
172
+ #
173
+ # class Application < Rails::Application
174
+ # config.action_view.full_sanitizer = MySpecialSanitizer.new
175
+ # end
176
+ #
177
+ # source://actionview/7.0.4.2/lib/action_view/helpers/sanitize_helper.rb#145
178
+ def full_sanitizer; end
179
+
180
+ # Sets the attribute full_sanitizer
181
+ #
182
+ # @param value the value to set the attribute full_sanitizer to.
183
+ #
184
+ # source://actionview/7.0.4.2/lib/action_view/helpers/sanitize_helper.rb#125
185
+ def full_sanitizer=(_arg0); end
186
+
187
+ # Gets the Rails::Html::LinkSanitizer instance used by +strip_links+.
188
+ # Replace with any object that responds to +sanitize+.
189
+ #
190
+ # class Application < Rails::Application
191
+ # config.action_view.link_sanitizer = MySpecialSanitizer.new
192
+ # end
193
+ #
194
+ # source://actionview/7.0.4.2/lib/action_view/helpers/sanitize_helper.rb#155
195
+ def link_sanitizer; end
196
+
197
+ # Sets the attribute link_sanitizer
198
+ #
199
+ # @param value the value to set the attribute link_sanitizer to.
200
+ #
201
+ # source://actionview/7.0.4.2/lib/action_view/helpers/sanitize_helper.rb#125
202
+ def link_sanitizer=(_arg0); end
203
+
204
+ # Gets the Rails::Html::SafeListSanitizer instance used by sanitize and +sanitize_css+.
205
+ # Replace with any object that responds to +sanitize+.
206
+ #
207
+ # class Application < Rails::Application
208
+ # config.action_view.safe_list_sanitizer = MySpecialSanitizer.new
209
+ # end
210
+ #
211
+ # source://actionview/7.0.4.2/lib/action_view/helpers/sanitize_helper.rb#165
212
+ def safe_list_sanitizer; end
213
+
214
+ # Sets the attribute safe_list_sanitizer
215
+ #
216
+ # @param value the value to set the attribute safe_list_sanitizer to.
217
+ #
218
+ # source://actionview/7.0.4.2/lib/action_view/helpers/sanitize_helper.rb#125
219
+ def safe_list_sanitizer=(_arg0); end
220
+
221
+ # source://actionview/7.0.4.2/lib/action_view/helpers/sanitize_helper.rb#135
222
+ def sanitized_allowed_attributes; end
223
+
224
+ # Replaces the allowed HTML attributes for the +sanitize+ helper.
225
+ #
226
+ # class Application < Rails::Application
227
+ # config.action_view.sanitized_allowed_attributes = ['onclick', 'longdesc']
228
+ # end
229
+ #
230
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#50
231
+ def sanitized_allowed_attributes=(attributes); end
232
+
233
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#63
234
+ def sanitized_allowed_css_keywords; end
235
+
236
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#64
237
+ def sanitized_allowed_css_keywords=(_); end
238
+
239
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#63
240
+ def sanitized_allowed_css_properties; end
241
+
242
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#64
243
+ def sanitized_allowed_css_properties=(_); end
244
+
245
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#63
246
+ def sanitized_allowed_protocols; end
247
+
248
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#64
249
+ def sanitized_allowed_protocols=(_); end
250
+
251
+ # source://actionview/7.0.4.2/lib/action_view/helpers/sanitize_helper.rb#131
252
+ def sanitized_allowed_tags; end
253
+
254
+ # Replaces the allowed tags for the +sanitize+ helper.
255
+ #
256
+ # class Application < Rails::Application
257
+ # config.action_view.sanitized_allowed_tags = 'table', 'tr', 'td'
258
+ # end
259
+ #
260
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#40
261
+ def sanitized_allowed_tags=(tags); end
262
+
263
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#63
264
+ def sanitized_bad_tags; end
265
+
266
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#64
267
+ def sanitized_bad_tags=(_); end
268
+
269
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#63
270
+ def sanitized_protocol_separator; end
271
+
272
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#64
273
+ def sanitized_protocol_separator=(_); end
274
+
275
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#63
276
+ def sanitized_shorthand_css_properties; end
277
+
278
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#64
279
+ def sanitized_shorthand_css_properties=(_); end
280
+
281
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#63
282
+ def sanitized_uri_attributes; end
283
+
284
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#64
285
+ def sanitized_uri_attributes=(_); end
286
+
287
+ # source://actionview/7.0.4.2/lib/action_view/helpers/sanitize_helper.rb#127
288
+ def sanitizer_vendor; end
289
+
290
+ private
291
+
292
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#68
293
+ def deprecate_option(name); end
294
+ end
295
+
296
+ # source://actionview/7.0.4.2/lib/action_view/template/error.rb#230
297
+ ActionView::TemplateError = ActionView::Template::Error
298
+
299
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer/version.rb#1
300
+ module Rails
301
+ class << self
302
+ # source://railties/7.0.4.2/lib/rails.rb#38
303
+ def app_class; end
304
+
305
+ # source://railties/7.0.4.2/lib/rails.rb#38
306
+ def app_class=(_arg0); end
307
+
308
+ # source://railties/7.0.4.2/lib/rails.rb#39
309
+ def application; end
310
+
311
+ # source://railties/7.0.4.2/lib/rails.rb#37
312
+ def application=(_arg0); end
313
+
314
+ # source://railties/7.0.4.2/lib/rails.rb#123
315
+ def autoloaders; end
316
+
317
+ # source://railties/7.0.4.2/lib/rails.rb#50
318
+ def backtrace_cleaner; end
319
+
320
+ # source://railties/7.0.4.2/lib/rails.rb#38
321
+ def cache; end
322
+
323
+ # source://railties/7.0.4.2/lib/rails.rb#38
324
+ def cache=(_arg0); end
325
+
326
+ # source://railties/7.0.4.2/lib/rails.rb#46
327
+ def configuration; end
328
+
329
+ # source://railties/7.0.4.2/lib/rails.rb#72
330
+ def env; end
331
+
332
+ # source://railties/7.0.4.2/lib/rails.rb#79
333
+ def env=(environment); end
334
+
335
+ # source://railties/7.0.4.2/lib/rails.rb#90
336
+ def error; end
337
+
338
+ # source://railties/7.0.4.2/lib/rails/gem_version.rb#5
339
+ def gem_version; end
340
+
341
+ # source://railties/7.0.4.2/lib/rails.rb#103
342
+ def groups(*groups); end
343
+
344
+ # source://railties/7.0.4.2/lib/rails.rb#43
345
+ def initialize!(*_arg0, **_arg1, &_arg2); end
346
+
347
+ # source://railties/7.0.4.2/lib/rails.rb#43
348
+ def initialized?(*_arg0, **_arg1, &_arg2); end
349
+
350
+ # source://railties/7.0.4.2/lib/rails.rb#38
351
+ def logger; end
352
+
353
+ # source://railties/7.0.4.2/lib/rails.rb#38
354
+ def logger=(_arg0); end
355
+
356
+ # source://railties/7.0.4.2/lib/rails.rb#119
357
+ def public_path; end
358
+
359
+ # source://railties/7.0.4.2/lib/rails.rb#63
360
+ def root; end
361
+
362
+ # source://railties/7.0.4.2/lib/rails/version.rb#7
363
+ def version; end
364
+ end
365
+ end
366
+
367
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer/version.rb#2
368
+ module Rails::Html; end
369
+
370
+ # === Rails::Html::FullSanitizer
371
+ # Removes all tags but strips out scripts, forms and comments.
372
+ #
373
+ # full_sanitizer = Rails::Html::FullSanitizer.new
374
+ # full_sanitizer.sanitize("<b>Bold</b> no more! <a href='more.html'>See more here</a>...")
375
+ # # => Bold no more! See more here...
376
+ #
377
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#28
378
+ class Rails::Html::FullSanitizer < ::Rails::Html::Sanitizer
379
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#29
380
+ def sanitize(html, options = T.unsafe(nil)); end
381
+ end
382
+
383
+ # === Rails::Html::LinkSanitizer
384
+ # Removes +a+ tags and +href+ attributes leaving only the link text.
385
+ #
386
+ # link_sanitizer = Rails::Html::LinkSanitizer.new
387
+ # link_sanitizer.sanitize('<a href="example.com">Only the link text will be kept.</a>')
388
+ #
389
+ # => 'Only the link text will be kept.'
390
+ #
391
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#49
392
+ class Rails::Html::LinkSanitizer < ::Rails::Html::Sanitizer
393
+ # @return [LinkSanitizer] a new instance of LinkSanitizer
394
+ #
395
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#50
396
+ def initialize; end
397
+
398
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#56
399
+ def sanitize(html, options = T.unsafe(nil)); end
400
+ end
401
+
402
+ # === Rails::Html::PermitScrubber
403
+ #
404
+ # +Rails::Html::PermitScrubber+ allows you to permit only your own tags and/or attributes.
405
+ #
406
+ # +Rails::Html::PermitScrubber+ can be subclassed to determine:
407
+ # - When a node should be skipped via +skip_node?+.
408
+ # - When a node is allowed via +allowed_node?+.
409
+ # - When an attribute should be scrubbed via +scrub_attribute?+.
410
+ #
411
+ # Subclasses don't need to worry if tags or attributes are set or not.
412
+ # If tags or attributes are not set, Loofah's behavior will be used.
413
+ # If you override +allowed_node?+ and no tags are set, it will not be called.
414
+ # Instead Loofahs behavior will be used.
415
+ # Likewise for +scrub_attribute?+ and attributes respectively.
416
+ #
417
+ # Text and CDATA nodes are skipped by default.
418
+ # Unallowed elements will be stripped, i.e. element is removed but its subtree kept.
419
+ # Supplied tags and attributes should be Enumerables.
420
+ #
421
+ # +tags=+
422
+ # If set, elements excluded will be stripped.
423
+ # If not, elements are stripped based on Loofahs +HTML5::Scrub.allowed_element?+.
424
+ #
425
+ # +attributes=+
426
+ # If set, attributes excluded will be removed.
427
+ # If not, attributes are removed based on Loofahs +HTML5::Scrub.scrub_attributes+.
428
+ #
429
+ # class CommentScrubber < Html::PermitScrubber
430
+ # def initialize
431
+ # super
432
+ # self.tags = %w(form script comment blockquote)
433
+ # end
434
+ #
435
+ # def skip_node?(node)
436
+ # node.text?
437
+ # end
438
+ #
439
+ # def scrub_attribute?(name)
440
+ # name == "style"
441
+ # end
442
+ # end
443
+ #
444
+ # See the documentation for +Nokogiri::XML::Node+ to understand what's possible
445
+ # with nodes: https://nokogiri.org/rdoc/Nokogiri/XML/Node.html
446
+ #
447
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#47
448
+ class Rails::Html::PermitScrubber < ::Loofah::Scrubber
449
+ # @return [PermitScrubber] a new instance of PermitScrubber
450
+ #
451
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#50
452
+ def initialize(prune: T.unsafe(nil)); end
453
+
454
+ # Returns the value of attribute attributes.
455
+ #
456
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#48
457
+ def attributes; end
458
+
459
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#60
460
+ def attributes=(attributes); end
461
+
462
+ # Returns the value of attribute prune.
463
+ #
464
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#48
465
+ def prune; end
466
+
467
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#64
468
+ def scrub(node); end
469
+
470
+ # Returns the value of attribute tags.
471
+ #
472
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#48
473
+ def tags; end
474
+
475
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#56
476
+ def tags=(tags); end
477
+
478
+ protected
479
+
480
+ # @return [Boolean]
481
+ #
482
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#81
483
+ def allowed_node?(node); end
484
+
485
+ # @return [Boolean]
486
+ #
487
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#93
488
+ def keep_node?(node); end
489
+
490
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#135
491
+ def scrub_attribute(node, attr_node); end
492
+
493
+ # @return [Boolean]
494
+ #
495
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#89
496
+ def scrub_attribute?(name); end
497
+
498
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#106
499
+ def scrub_attributes(node); end
500
+
501
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#119
502
+ def scrub_css_attribute(node); end
503
+
504
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#101
505
+ def scrub_node(node); end
506
+
507
+ # @return [Boolean]
508
+ #
509
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#85
510
+ def skip_node?(node); end
511
+
512
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#128
513
+ def validate!(var, name); end
514
+ end
515
+
516
+ # === Rails::Html::SafeListSanitizer
517
+ # Sanitizes html and css from an extensive safe list (see link further down).
518
+ #
519
+ # === Whitespace
520
+ # We can't make any guarantees about whitespace being kept or stripped.
521
+ # Loofah uses Nokogiri, which wraps either a C or Java parser for the
522
+ # respective Ruby implementation.
523
+ # Those two parsers determine how whitespace is ultimately handled.
524
+ #
525
+ # When the stripped markup will be rendered the users browser won't take
526
+ # whitespace into account anyway. It might be better to suggest your users
527
+ # wrap their whitespace sensitive content in pre tags or that you do
528
+ # so automatically.
529
+ #
530
+ # === Options
531
+ # Sanitizes both html and css via the safe lists found here:
532
+ # https://github.com/flavorjones/loofah/blob/master/lib/loofah/html5/safelist.rb
533
+ #
534
+ # SafeListSanitizer also accepts options to configure
535
+ # the safe list used when sanitizing html.
536
+ # There's a class level option:
537
+ # Rails::Html::SafeListSanitizer.allowed_tags = %w(table tr td)
538
+ # Rails::Html::SafeListSanitizer.allowed_attributes = %w(id class style)
539
+ #
540
+ # Tags and attributes can also be passed to +sanitize+.
541
+ # Passed options take precedence over the class level options.
542
+ #
543
+ # === Examples
544
+ # safe_list_sanitizer = Rails::Html::SafeListSanitizer.new
545
+ #
546
+ # Sanitize css doesn't take options
547
+ # safe_list_sanitizer.sanitize_css('background-color: #000;')
548
+ #
549
+ # Default: sanitize via a extensive safe list of allowed elements
550
+ # safe_list_sanitizer.sanitize(@article.body)
551
+ #
552
+ # Safe list via the supplied tags and attributes
553
+ # safe_list_sanitizer.sanitize(@article.body, tags: %w(table tr td),
554
+ # attributes: %w(id class style))
555
+ #
556
+ # Safe list via a custom scrubber
557
+ # safe_list_sanitizer.sanitize(@article.body, scrubber: ArticleScrubber.new)
558
+ #
559
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#103
560
+ class Rails::Html::SafeListSanitizer < ::Rails::Html::Sanitizer
561
+ # @return [SafeListSanitizer] a new instance of SafeListSanitizer
562
+ #
563
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#113
564
+ def initialize(prune: T.unsafe(nil)); end
565
+
566
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#117
567
+ def sanitize(html, options = T.unsafe(nil)); end
568
+
569
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#138
570
+ def sanitize_css(style_string); end
571
+
572
+ private
573
+
574
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#148
575
+ def allowed_attributes(options); end
576
+
577
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#144
578
+ def allowed_tags(options); end
579
+
580
+ class << self
581
+ # Returns the value of attribute allowed_attributes.
582
+ #
583
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#106
584
+ def allowed_attributes; end
585
+
586
+ # Sets the attribute allowed_attributes
587
+ #
588
+ # @param value the value to set the attribute allowed_attributes to.
589
+ #
590
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#106
591
+ def allowed_attributes=(_arg0); end
592
+
593
+ # Returns the value of attribute allowed_tags.
594
+ #
595
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#105
596
+ def allowed_tags; end
597
+
598
+ # Sets the attribute allowed_tags
599
+ #
600
+ # @param value the value to set the attribute allowed_tags to.
601
+ #
602
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#105
603
+ def allowed_tags=(_arg0); end
604
+ end
605
+ end
606
+
607
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer/version.rb#3
608
+ class Rails::Html::Sanitizer
609
+ # @raise [NotImplementedError]
610
+ #
611
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#6
612
+ def sanitize(html, options = T.unsafe(nil)); end
613
+
614
+ private
615
+
616
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#17
617
+ def properly_encode(fragment, options); end
618
+
619
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#12
620
+ def remove_xpaths(node, xpaths); end
621
+
622
+ class << self
623
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#10
624
+ def full_sanitizer; end
625
+
626
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#14
627
+ def link_sanitizer; end
628
+
629
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#18
630
+ def safe_list_sanitizer; end
631
+
632
+ # source://rails-html-sanitizer//lib/rails-html-sanitizer.rb#22
633
+ def white_list_sanitizer; end
634
+ end
635
+ end
636
+
637
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer/version.rb#4
638
+ Rails::Html::Sanitizer::VERSION = T.let(T.unsafe(nil), String)
639
+
640
+ # === Rails::Html::TargetScrubber
641
+ #
642
+ # Where +Rails::Html::PermitScrubber+ picks out tags and attributes to permit in
643
+ # sanitization, +Rails::Html::TargetScrubber+ targets them for removal.
644
+ #
645
+ # +tags=+
646
+ # If set, elements included will be stripped.
647
+ #
648
+ # +attributes=+
649
+ # If set, attributes included will be removed.
650
+ #
651
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#170
652
+ class Rails::Html::TargetScrubber < ::Rails::Html::PermitScrubber
653
+ # @return [Boolean]
654
+ #
655
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#171
656
+ def allowed_node?(node); end
657
+
658
+ # @return [Boolean]
659
+ #
660
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#175
661
+ def scrub_attribute?(name); end
662
+ end
663
+
664
+ # === Rails::Html::TextOnlyScrubber
665
+ #
666
+ # +Rails::Html::TextOnlyScrubber+ allows you to permit text nodes.
667
+ #
668
+ # Unallowed elements will be stripped, i.e. element is removed but its subtree kept.
669
+ #
670
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#185
671
+ class Rails::Html::TextOnlyScrubber < ::Loofah::Scrubber
672
+ # @return [TextOnlyScrubber] a new instance of TextOnlyScrubber
673
+ #
674
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#186
675
+ def initialize; end
676
+
677
+ # source://rails-html-sanitizer//lib/rails/html/scrubbers.rb#190
678
+ def scrub(node); end
679
+ end
680
+
681
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#153
682
+ Rails::Html::WhiteListSanitizer = Rails::Html::SafeListSanitizer
683
+
684
+ # source://rails-html-sanitizer//lib/rails/html/sanitizer.rb#3
685
+ Rails::Html::XPATHS_TO_REMOVE = T.let(T.unsafe(nil), Array)