From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thibault Marin Subject: Re: Org publish inserting HTML tags into sitemap-format-entry Date: Wed, 10 Jul 2019 19:47:18 -0400 Message-ID: <877e8pwiyh.fsf@dell-desktop.WORKGROUP> References: Reply-To: thibault.marin@gmx.com Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:42112) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hlMVh-0003ZC-Cm for emacs-orgmode@gnu.org; Wed, 10 Jul 2019 20:00:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hlMVg-0002sG-AE for emacs-orgmode@gnu.org; Wed, 10 Jul 2019 20:00:29 -0400 Received: from mout.gmx.net ([212.227.17.20]:51197) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hlMVf-0002YY-Qe for emacs-orgmode@gnu.org; Wed, 10 Jul 2019 20:00:28 -0400 In-reply-to: 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.org@gnu.org Sender: "Emacs-orgmode" To: Thomas Ingram Cc: "emacs-orgmode@gnu.org" You may need to wrap the html part in a `#+begin_export html' block or similar. I believe the custom sitemap function should generate org content, not directly HTML. Hope it helps. On 2019-07-10T17:44:01-0400, Thomas Ingram wrote: Hello, I am using ox-publish to build my website. I have a custom sitemap-formt-entry function that adds post dates and I'm trying to add a div around those dates. Problem is the tags are getting escaped in the resulting HTML. How can I add tags without them being escaped? Below is my :sitemap-format-entry function. (defun org-sitemap-custom-entry-format (entry style project) (let ((filename (org-publish-find-title entry project))) (if (= (length filename) 0) (format "*%s*" entry) (format "
%s
[[file:blog/%s][%s]]" (format-time-string "%Y-%m-%d" (org-publish-find-date entry project)) entry filename)))) Thanks for the help! Thomas Ingram