# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/ RSpec.shared_examples 'HasXssSanitizedNote' do |model_factory:| describe 'XSS prevention' do context 'with injected JS' do subject { create(model_factory, note: 'test 123 some text') } it 'strips out