Skip to content

Commit

Permalink
change test to avoid differences between parsers
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanosman committed Mar 22, 2024
1 parent 0b6c87f commit d1e54d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/floki_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ defmodule FlokiTest do
end

test "raw_html treats the contents of title tags as plain text" do
html_string = ~s(<title> <b> bold </b> text </title>)
html_string = ~s(<html><head><title> <b> bold </b> text </title></head><body></body></html>)
parsed = Floki.parse_document!(html_string)
assert ^html_string = Floki.raw_html(parsed)
end
Expand Down

0 comments on commit d1e54d0

Please sign in to comment.