From f49af903ed1d04641f3ea8d3a320db1da5c0a116 Mon Sep 17 00:00:00 2001 From: Vasilij Schneidermann Date: Sat, 28 Nov 2020 10:19:03 +0100 Subject: Escape ID correctly --- nov.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nov.el') diff --git a/nov.el b/nov.el index 445e3c2..b89489f 100644 --- a/nov.el +++ b/nov.el @@ -5,7 +5,7 @@ ;; Author: Vasilij Schneidermann ;; URL: https://depp.brause.cc/nov.el ;; Version: 0.3.0 -;; Package-Requires: ((dash "2.12.0") (esxml "0.3.3") (emacs "24.4")) +;; Package-Requires: ((dash "2.12.0") (esxml "0.3.5") (emacs "24.4")) ;; Keywords: hypermedia, multimedia, epub ;; This file is NOT part of GNU Emacs. @@ -266,7 +266,7 @@ the specific type of unique identifier." "Return the the unique identifier for CONTENT." (let* ((name (nov-content-unique-identifier-name content)) (selector (format "package>metadata>identifier[id='%s']" - (regexp-quote name))) + (esxml-query-css-escape name))) (id (car (esxml-node-children (esxml-query selector content))))) (when (not id) (error "Unique identifier not found by its name: %s" name)) -- cgit v1.2.3