emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug: XML entities in the ox-rss exporter
@ 2016-05-17 19:20 Arun Isaac
  2016-05-24 20:48 ` Nicolas Goaziou
  0 siblings, 1 reply; 6+ messages in thread
From: Arun Isaac @ 2016-05-17 19:20 UTC (permalink / raw)
  To: emacs-org


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.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-05-26 13:23 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-17 19:20 Bug: XML entities in the ox-rss exporter Arun Isaac
2016-05-24 20:48 ` 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

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).