require 'helper' class TestSkimHtmlEscaping < TestSkim def test_html_will_not_be_escaped source = %q{ p World, meet "Skim". } with_and_without_asset do assert_html '

World, meet "Skim".

', source end end def test_html_with_newline_will_not_be_escaped source = %q{ p | World, meet "Skim". } with_and_without_asset do assert_html "

World,\n meet \"Skim\".

", source end end def test_html_with_escaped_interpolation source = %q{ - x = '"' - content = '' p class="#{x}" test #{content} } with_and_without_asset do assert_html '

test <x>

', source end end def test_html_nested_escaping source = %q{ = @callback "Test", -> 'escaped &' } with_and_without_asset do assert_html 'Test escaped & Test', source end end end