From b26e8bebb1121954e090f350cf8b17e832daccef Mon Sep 17 00:00:00 2001 From: Artur Malabarba Date: Tue, 4 Nov 2014 09:04:39 +0000 Subject: Descriptive comments to stack-core--decode-entities --- stack-core.el | 2 ++ 1 file changed, 2 insertions(+) (limited to 'stack-core.el') diff --git a/stack-core.el b/stack-core.el index 5a90cb3..c78c316 100644 --- a/stack-core.el +++ b/stack-core.el @@ -342,7 +342,9 @@ context of `stack-cache-directory'." (defun stack-core--decode-entities (string) (let* ((plist stack-core-html-entities-plist) (get-function (lambda (s) (let ((ss (substring s 1 -1))) + ;; Handle things like " (or (plist-get plist (intern ss)) + ;; Handle things like ' (format "%c" (string-to-int (substring ss 1)))))))) (replace-regexp-in-string "&[^; ]*;" get-function string))) -- cgit v1.2.3