summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArne Babenhauserheide <arne_bab@web.de>2020-03-15 23:42:19 +0100
committerKyle Meyer <kyle@kyleam.com>2020-03-15 20:06:35 -0400
commit661696036f62dc8fba37bb22b6b81ab831fa9cfd (patch)
tree61421b8d0eeab767820c5dc9feefbf83b6136918
parentb6e3e8f2b692ed1720751611d41d53765743bea6 (diff)
downloadorg-mode-661696036f62dc8fba37bb22b6b81ab831fa9cfd.tar.gz
ox-html: escape & in license magnets
* lisp/ox-html.el (org-html-scripts): (org-html-infojs-template): & escaped as &amp; This fixes xhtml validation while still being recognized by LibreJS as valid license. Reported-by: Colin Baxter <m43cap@yandex.com> <87eett7bql.fsf@yandex.com> TINYCHANGE
-rw-r--r--lisp/ox-html.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index 9a1dd44..5c2b766 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -232,7 +232,7 @@ property on the headline itself.")
(defconst org-html-scripts
"<script type=\"text/javascript\">
-// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
+// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&amp;dn=gpl-3.0.txt GPL-v3-or-Later
<!--/*--><![CDATA[/*><!--*/
function CodeHighlightOn(elem, id)
{
@@ -510,12 +510,12 @@ means to use the maximum value consistent with other options."
(defcustom org-html-infojs-template
"<script type=\"text/javascript\" src=\"%SCRIPT_PATH\">
-// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
+// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&amp;dn=gpl-3.0.txt GPL-v3-or-Later
// @license-end
</script>
<script type=\"text/javascript\">
-// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
+// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&amp;dn=gpl-3.0.txt GPL-v3-or-Later
<!--/*--><![CDATA[/*><!--*/
%MANAGER_OPTIONS
org_html_manager.setup(); // activate after the parameters are set