Module: AlEmailProtect::Filters
- Defined in:
- lib/al_email_protect.rb
Instance Method Summary collapse
- #al_email_obfuscate(value) ⇒ Object
-
#al_email_protect_html(value) ⇒ Object
{{ captured_html | al_email_protect_html }}— a pass-through when the feature is off, so callers can pipe unconditionally.
Instance Method Details
#al_email_obfuscate(value) ⇒ Object
197 198 199 200 201 |
# File 'lib/al_email_protect.rb', line 197 def al_email_obfuscate(value) return value.to_s unless AlEmailProtect.enabled?(@context.registers[:site]) AlEmailProtect.obfuscate_text(value) end |
#al_email_protect_html(value) ⇒ Object
{{ captured_html | al_email_protect_html }} — a pass-through when the
feature is off, so callers can pipe unconditionally.
205 206 207 208 209 |
# File 'lib/al_email_protect.rb', line 205 def al_email_protect_html(value) return value.to_s unless AlEmailProtect.enabled?(@context.registers[:site]) AlEmailProtect.rewrite_html(value) end |