all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Arun Isaac <theroarofthedragon@gmail.com>
To: emacs-org <emacs-orgmode@gnu.org>
Subject: Bug: XML entities in the ox-rss exporter
Date: Wed, 18 May 2016 00:50:28 +0530	[thread overview]
Message-ID: <87r3d05w5f.fsf@gmail.com> (raw)


The ox-rss exporter does not replace characters (such as < , > , etc.)
by their corresponding XML entities (&lt; , &gt; , etc.) in the <title>
field of the generated XML.

For example, the following org file, when exported, will produce invalid
XML where the <title> field still contains the disallowed "<" character.

----- org file begins here -----
* Foo <- Bar

Some text
----- org file ends here -----

I'm guessing the ox-rss backend similarly fails to handle XML entities
in other fields as well.

I can provide a patch for this. But, do I use an external library like
xmlgen (https://github.com/philjackson/xmlgen), or do I write my own
find and replace functions like those in ox-html? I think the xmlgen
based approach provides better abstraction and avoids reinventing XML
generation. But, it will introduce an additional dependency.

Please provide thoughts and suggestions.

Thank you,
Arun Isaac.

             reply	other threads:[~2016-05-18  1:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-17 19:20 Arun Isaac [this message]
2016-05-24 20:48 ` Bug: XML entities in the ox-rss exporter Nicolas Goaziou
2016-05-25 10:12   ` Arun Isaac
2016-05-26 10:17     ` Arun Isaac
2016-05-26 12:05       ` Arun Isaac
2016-05-26 13:22         ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r3d05w5f.fsf@gmail.com \
    --to=theroarofthedragon@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.