From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: ox.html causes w3c xhtml validation Date: Sun, 15 Mar 2020 19:45:31 +0000 Message-ID: <871rpt9zc4.fsf@kyleam.com> References: <87eett7bql.fsf@yandex.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:44963) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jDZCh-0005rM-Cu for emacs-orgmode@gnu.org; Sun, 15 Mar 2020 15:45:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jDZCf-00013a-Du for emacs-orgmode@gnu.org; Sun, 15 Mar 2020 15:45:42 -0400 Received: from pb-smtp20.pobox.com ([173.228.157.52]:63871) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jDZCf-0000qY-4H for emacs-orgmode@gnu.org; Sun, 15 Mar 2020 15:45:41 -0400 In-Reply-To: <87eett7bql.fsf@yandex.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane-mx.org@gnu.org Sender: "Emacs-orgmode" To: Colin Baxter , emacs-orgmode@gnu.org Cc: Arne Babenhauserheide Colin Baxter writes: > ----- Begin ----- > Warning Line 205, Column 74: > cannot generate system identifier for general entity "dn" > > =E2=80=A6rn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=3Dgpl-3.0.tx= t GPL-v3-or-Later > > An entity reference was found in the document, but there is no > reference by that name defined. Often this is caused by misspelling > the reference name, unencoded ampersands, or by leaving off the > trailing semicolon (;). The most common cause of this error is > unencoded ampersands in URLs as described by the WDG in "Ampersands > in URLs". > > ----- End ------- > > The cause is ox-html, which has the following lines > > ./lisp/ox-html.el:235:// @license > magnet:?xt=3Durn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=3Dgpl-3= .0.txt > GPL-v3-or-Later [...] > I think the culprit is commit 68fa5e589f00c8d5b4f7f0dc70be6ebe59238bb8, > 11 Feb. > > Is it possible to fix this? >From what I gather from briefly searching around (mostly based on this information [0]), I don't think there's an easy fix for inline javascript. I wonder if Arne [+cc], who suggested the change [1], knows of a solution. [0]: https://mrcoles.com/blog/how-use-amersands-html-encode/ [1]: https://lists.gnu.org/archive/html/emacs-orgmode/2019-11/msg00030.html