Some shots from Alaska
I don't ordinarily post pictures around here but I am making an exception. Elizabeth and I recently spent a week in Anchorage, AK, where my in-laws were gathered for a family reunion. Eliz took a bunch of pictures and has uploaded a few to Flickr.
Boy, but it is gorgeous up there. A fellow sure could get used to all those mountain vistas and free-range zucchinis (?!).
Unescaping HTML in Python
Dear Future Me,
You've forgotten how to decode (or unescape) HTML or XML in Python again, haven't you? My, my, that old age does catch up with you.
Well, it turns out that xml.sax.saxutils.unescape() works like a charm. I'm certain that edge cases lurk here and there, so caveat, um, coder.
UPDATE: Edge case found. Note that unescape() will not work on ' or ", and so there is:
xml.sax.saxutils.unescape("<p>This is "markup"</p>", {"'": "'", """: '"'})
