From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id kPzAArtw/F/gTgAA0tVLHw (envelope-from ) for ; Mon, 11 Jan 2021 15:37:31 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +I8fOrpw/F+jfAAAbx9fmQ (envelope-from ) for ; Mon, 11 Jan 2021 15:37:30 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 741C79402A8 for ; Mon, 11 Jan 2021 15:37:30 +0000 (UTC) Received: from localhost ([::1]:56470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kyzG5-00072S-Ep for larch@yhetil.org; Mon, 11 Jan 2021 10:37:29 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:53502) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kyzBW-0004GY-RP for emacs-orgmode@gnu.org; Mon, 11 Jan 2021 10:32:47 -0500 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]:33346) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kyzBS-0005sC-H6 for emacs-orgmode@gnu.org; Mon, 11 Jan 2021 10:32:46 -0500 Received: by mail-wr1-x42e.google.com with SMTP id t30so240959wrb.0 for ; Mon, 11 Jan 2021 07:32:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=IgoFvZTVASBsq7evMfeJ0sCtlPBuWo+b9thHWiNTeCg=; b=K5S5T9EY+6gjG7Z9B4LU9fGrtOnRywa3ueYfMuXQz7lZdGQCENSLCgnSBbj7eHn1KL L/seERuOzpQSD9FFr1PWimj5GeGHe9b7VpkfhDNWKKqOpYyzr5nXyJi9rlSOllkXbosP bACSKiRPjtxsUfphTV8WgBTTFxFMdu6fL39Cary1u+JAyTKxxjvYfXtK/K696AlrFPPS u3E5m1AR1kxlOYBu7oGVlpWQRSoE5j7sMfYNKELAmAHyr8oUigIhKJ/dk/1gBml4OJBh A+RPSGnbnQadntUUiq/riJk4cLkSsnnQsU4Z5gll3Wj5r/xxJt2lCSCutznBHzqvE1wS El6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=IgoFvZTVASBsq7evMfeJ0sCtlPBuWo+b9thHWiNTeCg=; b=rbow4GqSl0V0QhkkbM+yU0YK1bs4kRRAOFVYkJ3xh/y181R8ZMWtpyFiKR8O332e48 AUO8LKhyF15GmE1dojY5MuGfJaFRnjskOP+HvtAKZ8ySjKaH1HW/T0M7OFzNkW0fcGUy jYBkxsm/+ga5E6VQS8ovFBQ94EFvqKIAbJFevSRglVYe4Qofi59MoMRYNAAEYMUPLQBV 2qoEEi3nqHGKlQwWXpi8m9FagxnjfMLBBjlRIhlwxShuWvJoNs9s/7MBNnaPAvitYjxv Y0K7aflGznUKMZe1EZ3S+czpYCi9W+OICHg14jJPkmScPUIGoUJ/Ek5ndY+jIs8QC/XD Nxkw== X-Gm-Message-State: AOAM5326Stoiysyriq71Zga4rSfGR7ZB0rhiaqVnxXQx8snGp/FNqboY 6GFnJ+0nt9Pk0PgMP7CKqvOIJrBulX1HXQV7AhOKXZe3CTmaDw== X-Google-Smtp-Source: ABdhPJw6XC2a70LwpOiQSbTbgYrI5k2TuZ9OuqAdIN9wf5RfQ6aIWh8PxiXuYZl3Yg55NC6v887QzQ5lxby+sEnCUm0= X-Received: by 2002:a5d:40d2:: with SMTP id b18mr16413736wrq.369.1610379157811; Mon, 11 Jan 2021 07:32:37 -0800 (PST) MIME-Version: 1.0 From: Tim Visher Date: Mon, 11 Jan 2021 10:32:01 -0500 Message-ID: Subject: ox-html Incorrectly (?) Puts HTML Into the `` Tag To: Emacs Org Mode mailing list <emacs-orgmode@gnu.org> Content-Type: multipart/alternative; boundary="000000000000a7b45c05b8a19df0" Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=tim.visher@gmail.com; helo=mail-wr1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." <emacs-orgmode.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-orgmode>, <mailto:emacs-orgmode-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/emacs-orgmode> List-Post: <mailto:emacs-orgmode@gnu.org> List-Help: <mailto:emacs-orgmode-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-orgmode>, <mailto:emacs-orgmode-request@gnu.org?subject=subscribe> Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" <emacs-orgmode-bounces+larch=yhetil.org@gnu.org> X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -3.05 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=K5S5T9EY; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 741C79402A8 X-Spam-Score: -3.05 X-Migadu-Scanner: scn1.migadu.com X-TUID: sVw6q6Oudqye --000000000000a7b45c05b8a19df0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi all, I noticed over the weekend that the `<title>` tag in an ox-html document is populated with HTML when inline formatting like bold or italics is used. I'm running org 9.4.4 but even on HEAD <https://code.orgmode.org/bzg/org-mode/src/9ea7ff5e2f8f9f280f8022cade62c1a3= bba1478c/lisp/ox-html.el#L2092-L2111> this behavior seems to be the same where `(org-export-data title =E2=80=A6)` is = used to populate the title rather than something that would render the title textually. My understanding from MDN <https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title> is that `title` tags should never contain markup. Is this something we'd take a patch for? My thought is that the title should be converted using the text backend by default, perhaps with a configuration variable that would let you specify a different one (for instance markdown) but I wouldn't go that far at first. Of course at minimum since org is textual it could just use the title without exporting at all but I think that doesn't go far enough. The other possibility would be to somehow strip all special characters from the title but I think that goes much too far. Thanks in advance! -- In Christ, Timmy V. https://blog.twonegatives.com http://five.sentenc.es --000000000000a7b45c05b8a19df0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr">Hi all,<div><br></div><div>I noticed over the weekend that= the `<title>` tag in an ox-html document is populated with HTML when= inline formatting like bold or italics is used. I'm running org 9.4.4 = but even on <a href=3D"https://code.orgmode.org/bzg/org-mode/src/9ea7ff5e2f= 8f9f280f8022cade62c1a3bba1478c/lisp/ox-html.el#L2092-L2111">HEAD</a>=C2=A0t= his behavior seems to be the same where `(org-export-data title=C2=A0=E2=80= =A6)` is used to populate the title rather than something that would render= the title textually.</div><div><br></div><div>My understanding from <a hre= f=3D"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title">MDN</= a> is that `title` tags should never contain markup.</div><div><br></div><d= iv>Is this something we'd take a patch for? My thought is that the titl= e should be converted using the text backend by default, perhaps with a con= figuration variable that would let you specify a different one (for instanc= e markdown) but I wouldn't go that far at first. Of course at minimum s= ince org is textual it could just use the title without exporting at all bu= t I think that doesn't go far enough. The other possibility would be to= somehow strip all special characters from the title but I think that goes = much too far.</div><div><br></div><div>Thanks in advance!<br><br>--<br><br>= In Christ,<br><br>Timmy V.<br><br><a href=3D"https://blog.twonegatives.com"= >https://blog.twonegatives.com</a><br><a href=3D"http://five.sentenc.es">ht= tp://five.sentenc.es</a><br></div></div> --000000000000a7b45c05b8a19df0--