This is a test.\n\n\n\nIt no longer contains any HTML.
\n}))
.to eq(%{This is a test.\n\n\n\nIt no longer contains any HTML.\n})
}
end
context "html escaping of the given string" do
it {
expect(strip_tags("test\r\nstring")).to eq("test\r\nstring")
expect(strip_tags("&")).to eq("&")
expect(strip_tags("&")).to eq("&")
expect(strip_tags("&&")).to eq("&&")
expect(strip_tags("omg <script>BOM</script>")).to eq("omg <script>BOM</script>")
}
end
end