emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Org publish inserting HTML tags into sitemap-format-entry


From: Thomas Ingram
Subject: [O] Org publish inserting HTML tags into sitemap-format-entry
Date: Wed, 10 Jul 2019 17:44:01 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2

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 "<div class=\"timestamp\">%s</div> [[file:blog/%s][%s]]"
              (format-time-string "%Y-%m-%d"
                  (org-publish-find-date entry project))
              entry
              filename))))

Thanks for the help!

Thomas Ingram




reply via email to

[Prev in Thread] Current Thread [Next in Thread]