summaryrefslogtreecommitdiff
path: root/bs4/css.py
diff options
context:
space:
mode:
authorLeonard Richardson <leonardr@segfault.org>2023-02-03 22:07:19 -0500
committerLeonard Richardson <leonardr@segfault.org>2023-02-03 22:07:19 -0500
commit526fcf8d98ccc457d5943c83ab133fe49c174d1e (patch)
tree338bbe8d82a47eafcb7ceb0f2a0129f8ec8c721d /bs4/css.py
parent1f0f15f9b3620f75b30b700c4764a4f09eca8376 (diff)
Added tests of CSS.escape.
Diffstat (limited to 'bs4/css.py')
-rw-r--r--bs4/css.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/bs4/css.py b/bs4/css.py
index 5d60267..9b047f8 100644
--- a/bs4/css.py
+++ b/bs4/css.py
@@ -43,13 +43,14 @@ class CSS(object):
@classmethod
def escape(cls, ident):
- """Escape a CSS selector.
+ """Escape a CSS identifier.
- This is a simple wrapper around soupselect.escape().
+ This is a simple wrapper around soupselect.escape(). See the
+ documentation for that function for more information.
"""
if soupsieve is None:
raise NotImplementedError(
- "Cannot escape CSS selectors because the soupsieve package is not installed."
+ "Cannot escape CSS identifiers because the soupsieve package is not installed."
)
return soupsieve.escape(ident)