Skip to content

Instantly share code, notes, and snippets.

View MattDietz's full-sized avatar

Matt Dietz MattDietz

  • Matthew Dietz, LLC
  • San Antonio, TX
  • 17:21 (UTC -12:00)
View GitHub Profile
@MattDietz
MattDietz / gist:3363258
Created August 15, 2012 20:23
CTags setup
Install this:
http://vim.sourceforge.net/scripts/script.php?script_id=273
.vimrc setup:
""" ctags
map ,bt :!ctags -R . <CR>
diff --git a/pyhole/utils.py b/pyhole/utils.py
index 86a0180..5ff46e3 100644
--- a/pyhole/utils.py
+++ b/pyhole/utils.py
@@ -71,18 +71,20 @@ def spawn(func):
def decode_entities(html):
"""Strip HTML entities from a string"""
- html = re.sub("<[^>]*?>", "", html)
- html = re.sub("&nbsp;", " ", html)