Skip to content

Commit

Permalink
Revert "add Floki.css_escape/1 (#594)"
Browse files Browse the repository at this point in the history
This reverts commit 3c05014.
This is temporary, only to release a patch version.
  • Loading branch information
philss committed Oct 21, 2024
1 parent 3c05014 commit 9ce1d1b
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 171 deletions.
15 changes: 0 additions & 15 deletions lib/floki.ex
Original file line number Diff line number Diff line change
Expand Up @@ -790,19 +790,4 @@ defmodule Floki do
def filter_out(elements, selector) do
FilterOut.filter_out(elements, selector)
end

@doc """
Escapes a string for use as a CSS identifier.
## Examples
iex> Floki.css_escape("hello world")
"hello\\\\ world"
iex> Floki.css_escape("-123")
"-\\\\31 23"
"""
@spec css_escape(String.t()) :: String.t()
def css_escape(value), do: Floki.CSSEscape.escape(value)
end
77 changes: 0 additions & 77 deletions lib/floki/css_escape.ex

This file was deleted.

79 changes: 0 additions & 79 deletions test/floki/css_escape_test.exs

This file was deleted.

0 comments on commit 9ce1d1b

Please sign in to comment.