# encoding: utf-8 require_relative 'common' describe 'Parser' do make_my_diffs_pretty! parallelize_me! it 'should translate valid entities into characters' do Sanitize.fragment("'é&").must_equal("'é&") end it 'should translate orphaned ampersands into entities' do Sanitize.fragment('at&t').must_equal('at&t') end it 'should not add newlines after tags when serializing a fragment' do Sanitize.fragment("
bar
bar