浏览代码

Fix escaping of links in html export.

* lisp/ox-html.el (org-html-link): Unescape org-escaped links an
  re-escape for html (browser).
Rick Frankel 11 年之前
父节点
当前提交
6f5180bd9f
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      lisp/ox-html.el

+ 3 - 1
lisp/ox-html.el

@@ -2624,7 +2624,9 @@ INFO is a plist holding contextual information.  See
 	 (path
 	  (cond
 	   ((member type '("http" "https" "ftp" "mailto"))
-	    (concat type ":" raw-path))
+	    (org-link-escape
+	     (org-link-unescape
+	      (concat type ":" raw-path)) org-link-escape-chars-browser))
 	   ((string= type "file")
 	    ;; Treat links to ".org" files as ".html", if needed.
 	    (setq raw-path