base_spec.rb 433 B

12345678910111213141516
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. require 'rails_helper'
  3. RSpec.describe HtmlSanitizer::Scrubber::Base do
  4. let(:scrubber) { described_class.new }
  5. describe '#html_decode' do
  6. it 'converts html entities into chars' do
  7. input = '"<tag>" & " "'
  8. output = scrubber.send(:html_decode, input)
  9. expect(output).to eq '"<tag>" & " "'
  10. end
  11. end
  12. end