summaryrefslogtreecommitdiff
path: root/beautifulsoup/element.py
diff options
context:
space:
mode:
Diffstat (limited to 'beautifulsoup/element.py')
-rw-r--r--beautifulsoup/element.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/beautifulsoup/element.py b/beautifulsoup/element.py
index 6fc3fbe..13fecf6 100644
--- a/beautifulsoup/element.py
+++ b/beautifulsoup/element.py
@@ -10,27 +10,6 @@ from util import isList
DEFAULT_OUTPUT_ENCODING = "utf-8"
-class Entities(object):
- """A mixin class that knows about XML entities."""
-
- HTML_ENTITIES = "html"
- XML_ENTITIES = "xml"
- XHTML_ENTITIES = "xhtml"
-
- def _invert(h):
- "Cheap function to invert a hash."
- i = {}
- for k,v in h.items():
- i[v] = k
- return i
-
- XML_ENTITIES_TO_SPECIAL_CHARS = { "apos" : "'",
- "quot" : '"',
- "amp" : "&",
- "lt" : "<",
- "gt" : ">" }
-
- XML_SPECIAL_CHARS_TO_ENTITIES = _invert(XML_ENTITIES_TO_SPECIAL_CHARS)
class PageElement(object):
"""Contains the navigational information for some part of the page