Commits

prologic  committed 46c59c0

Removed encodeHTML/decodeHTML (use circuits.web)

  • Participants
  • Parent commits 9422e21

Comments (0)

Files changed (1)

File pymills/utils.py

 
 	return MemoryStats().stack - since
 
-
-def decodeHTML(s=""):
-	"""decodeHTML(s) -> str
-
-	Decode HTML entities to their ASCII equivilent.
-	"""
-
-	return s.replace("&", "&") \
-			.replace("&lt;", "<") \
-			.replace("&gt;", ">") \
-			.replace("&quot;", "\"") \
-			.replace("&#039;", "'") \
-			.replace("&mdash", "--")
-
-
-def encodeHTML(s=""):
-	"""encodeHTML(s) -> str
-
-	Encode HTML special characters from their ASCII form to
-	HTML entities.
-	"""
-
-	return s.replace("&", "&amp;") \
-			.replace("<", "&lt;") \
-			.replace(">", "&gt;") \
-			.replace("\"", "&quot;") \
-			.replace("'", "&#039;") \
-			.replace("--", "&mdash")
-
-
 def MixIn(cls, mixin, last=False):
 	if mixin not in cls.__bases__:
 		if last: