123456789_123456789_123456789_123456789_123456789_

Module: ActionView::Helpers::ContentExfiltrationPreventionHelper

Constant Summary

Class Attribute Summary

Instance Attribute Summary

Instance Method Summary

Class Attribute Details

.prepend_content_exfiltration_prevention (rw) Also known as: #prepend_content_exfiltration_prevention

[ GitHub ]

  
# File 'actionview/lib/action_view/helpers/content_exfiltration_prevention_helper.rb', line 6

mattr_accessor :prepend_content_exfiltration_prevention, default: false

Instance Attribute Details

#prepend_content_exfiltration_prevention (rw)

[ GitHub ]

  
# File 'actionview/lib/action_view/helpers/content_exfiltration_prevention_helper.rb', line 6

mattr_accessor :prepend_content_exfiltration_prevention, default: false

Instance Method Details

#prevent_content_exfiltration(html)

[ GitHub ]

  
# File 'actionview/lib/action_view/helpers/content_exfiltration_prevention_helper.rb', line 61

def prevent_content_exfiltration(html)
  if prepend_content_exfiltration_prevention
    CONTENT_EXFILTRATION_PREVENTION_MARKUP + html
  else
    html
  end
end