From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac Subject: Bug: XML entities in the ox-rss exporter Date: Wed, 18 May 2016 00:50:28 +0530 Message-ID: <87r3d05w5f.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2qU0-0001Gk-6Y for emacs-orgmode@gnu.org; Tue, 17 May 2016 21:41:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b2kY6-0006Zt-5C for emacs-orgmode@gnu.org; Tue, 17 May 2016 15:21:01 -0400 Received: from mail-pa0-x236.google.com ([2607:f8b0:400e:c03::236]:33673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b2kY5-0006Zn-VB for emacs-orgmode@gnu.org; Tue, 17 May 2016 15:20:58 -0400 Received: by mail-pa0-x236.google.com with SMTP id xk12so9432986pac.0 for ; Tue, 17 May 2016 12:20:57 -0700 (PDT) Received: from steel ([223.227.25.80]) by smtp.gmail.com with ESMTPSA id r86sm6589753pfb.21.2016.05.17.12.20.53 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 May 2016 12:20:55 -0700 (PDT) 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: emacs-org The ox-rss exporter does not replace characters (such as < , > , etc.) by their corresponding XML entities (< , > , etc.) in the 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. From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou <mail@nicolasgoaziou.fr> Subject: Re: Bug: XML entities in the ox-rss exporter Date: Tue, 24 May 2016 22:48:09 +0200 Message-ID: <8737p79o8m.fsf@saiph.selenimh> References: <87r3d05w5f.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org> Received: from eggs.gnu.org ([2001:4830:134:3::10]:50726) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <mail@nicolasgoaziou.fr>) id 1b5JFV-0005Ac-Af for emacs-orgmode@gnu.org; Tue, 24 May 2016 16:48:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <mail@nicolasgoaziou.fr>) id 1b5JFT-0007wf-Et for emacs-orgmode@gnu.org; Tue, 24 May 2016 16:48:20 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:57184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <mail@nicolasgoaziou.fr>) id 1b5JFT-0007wU-8F for emacs-orgmode@gnu.org; Tue, 24 May 2016 16:48:19 -0400 In-Reply-To: <87r3d05w5f.fsf@gmail.com> (Arun Isaac's message of "Wed, 18 May 2016 00:50:28 +0530") 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: <http://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+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org> To: Arun Isaac <theroarofthedragon@gmail.com> Cc: emacs-org <emacs-orgmode@gnu.org> Hello, Arun Isaac <theroarofthedragon@gmail.com> writes: > I can provide a patch for this. Thank you. > 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? Since "ox-rss.el" loads "ox-html", could you re-use code in the latter? Regards, -- Nicolas Goaziou From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac <theroarofthedragon@gmail.com> Subject: Re: Bug: XML entities in the ox-rss exporter Date: Wed, 25 May 2016 15:42:00 +0530 Message-ID: <87fut6qwen.fsf@gmail.com> References: <87r3d05w5f.fsf@gmail.com> <8737p79o8m.fsf@saiph.selenimh> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org> Received: from eggs.gnu.org ([2001:4830:134:3::10]:34460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <theroarofthedragon@gmail.com>) id 1b5Vnx-0004GU-Ac for emacs-orgmode@gnu.org; Wed, 25 May 2016 06:12:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <theroarofthedragon@gmail.com>) id 1b5Vnr-0006Gt-87 for emacs-orgmode@gnu.org; Wed, 25 May 2016 06:12:44 -0400 Received: from mail-pf0-x232.google.com ([2607:f8b0:400e:c00::232]:34099) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <theroarofthedragon@gmail.com>) id 1b5Vnq-0006Gn-Ti for emacs-orgmode@gnu.org; Wed, 25 May 2016 06:12:39 -0400 Received: by mail-pf0-x232.google.com with SMTP id y69so17093228pfb.1 for <emacs-orgmode@gnu.org>; Wed, 25 May 2016 03:12:38 -0700 (PDT) Received: from steel ([223.227.165.146]) by smtp.gmail.com with ESMTPSA id kb15sm11580876pad.28.2016.05.25.03.12.33 for <emacs-orgmode@gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 25 May 2016 03:12:36 -0700 (PDT) In-reply-to: <8737p79o8m.fsf@saiph.selenimh> 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: <http://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+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org> To: emacs-org <emacs-orgmode@gnu.org> --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable >> I can provide a patch for this.=20 Please find attached the patch. > Since "ox-rss.el" loads "ox-html", could you re-use code in the latter? I think even ox-html could benefit from using an XML/HTML generation library that can convert s-expressions to XML/HTML. xml.el has `xml-parse-region' to convert XML strings to an s-expression tree, but unfortunately has no function to do the inverse, that is, convert an s-expression tree to an XML string. If it had such a function, we needn't have to depend on an external library such as xmlgen, and things would have been more convenient. Anyways, for now, I have implemented a patch which uses `org-rss-plain-text' (which, in turn uses `org-html-encode-plain-text') to encode the disallowed characters to their XML entities. --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXRXpxAAoJEC4l7othgCuz3jsIAKvQfFyyjMja+1KssYexuBxV hUT9DZyZR4w7KcV5p2TEKkX2kuoOJiMMAtCAD9/7sD4jqSq5uBe3/8iAp6ijlbUx r+TgwtevgZIdkGiZhH3/uZ2vm3nHoaqVfxiCtZo52HcE6JlnpB9tifs7lOx/L/8r Bkw+BAQJz5eLFBGLuSp0Psd7jZQ6KMcH63JE10pQ3v0DvoU01ZgtX6YjRtFacarI i6PyCo+fOVbPkDzZQRBTm3tZM6aD7dmAQX5SoJceejsL1i/TEabtfa7XRfYxDOP3 aOKVOaZH9EAViS0RcOos+Shjq35dfgmP5L8DeMbehgIa/Vkigpu8YHyaVgqeFVA= =jNp2 -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=ox-rss-Encode-characters-to-their-XML-entities.patch >From 2b310b32234e6193154c9850d51aaa8ed312f2df Mon Sep 17 00:00:00 2001 From: Arun Isaac <theroarofthedragon@gmail.com> Date: Wed, 25 May 2016 15:11:34 +0530 Subject: [PATCH] ox-rss: Encode characters to their XML entities * contrib/lisp/ox-rss.el (org-rss-build-channel-info, org-rss-headline): Encode disallowed characters in `title' to their XML entities The `title' field is user specified and may contain characters such as "&", "<" or ">" that are disallowed in XML. These characters should be encoded into their corresponding XML entities. --- contrib/lisp/ox-rss.el | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/contrib/lisp/ox-rss.el b/contrib/lisp/ox-rss.el index 0c4a2f2..95d20ec 100644 --- a/contrib/lisp/ox-rss.el +++ b/contrib/lisp/ox-rss.el @@ -248,12 +248,13 @@ communication channel." (format-time-string "%a, %d %b %Y %H:%M:%S %z" (org-time-string-to-time pubdate0))))) - (title (or (org-element-property :RSS_TITLE headline) - (replace-regexp-in-string - org-bracket-link-regexp - (lambda (m) (or (match-string 3 m) - (match-string 1 m))) - (org-element-property :raw-value headline)))) + (title (org-rss-plain-text + (or (org-element-property :RSS_TITLE headline) + (replace-regexp-in-string + org-bracket-link-regexp + (lambda (m) (or (match-string 3 m) + (match-string 1 m))) + (org-element-property :raw-value headline))) info)) (publink (or (and hl-perm (concat (or hl-home hl-pdir) hl-perm)) (concat @@ -318,7 +319,7 @@ as a communication channel." (defun org-rss-build-channel-info (info) "Build the RSS channel information." (let* ((system-time-locale "C") - (title (plist-get info :title)) + (title (org-rss-plain-text (or (plist-get info :title) "") info)) (email (org-export-data (plist-get info :email) info)) (author (and (plist-get info :with-author) (let ((auth (plist-get info :author))) -- 2.8.2 --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac <theroarofthedragon@gmail.com> Subject: Re: Bug: XML entities in the ox-rss exporter Date: Thu, 26 May 2016 15:47:03 +0530 Message-ID: <87bn3trun4.fsf@gmail.com> References: <87r3d05w5f.fsf@gmail.com> <8737p79o8m.fsf@saiph.selenimh> <87fut6qwen.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org> Received: from eggs.gnu.org ([2001:4830:134:3::10]:44320) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <theroarofthedragon@gmail.com>) id 1b5sMG-0006YK-IN for emacs-orgmode@gnu.org; Thu, 26 May 2016 06:17:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <theroarofthedragon@gmail.com>) id 1b5sMC-0006U3-F2 for emacs-orgmode@gnu.org; Thu, 26 May 2016 06:17:40 -0400 Received: from mail-pf0-x231.google.com ([2607:f8b0:400e:c00::231]:36833) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <theroarofthedragon@gmail.com>) id 1b5sMC-0006Tn-7g for emacs-orgmode@gnu.org; Thu, 26 May 2016 06:17:36 -0400 Received: by mail-pf0-x231.google.com with SMTP id f144so16520572pfa.3 for <emacs-orgmode@gnu.org>; Thu, 26 May 2016 03:17:35 -0700 (PDT) Received: from steel ([223.227.235.180]) by smtp.gmail.com with ESMTPSA id 4sm4859828pfm.15.2016.05.26.03.17.31 for <emacs-orgmode@gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 May 2016 03:17:33 -0700 (PDT) In-reply-to: <87fut6qwen.fsf@gmail.com> 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: <http://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+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org> To: emacs-org <emacs-orgmode@gnu.org> --=-=-= Content-Type: text/plain > Please find attached the patch. I think my patch introduces a bug in `org-rss-build-channel-info'. I'll fix this and send a new patch soon. --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXRs0fAAoJEC4l7othgCuzvzgIAMel+3WhFo3Nan37rInQ6r3T 6FMreEqctT3tvYslYx3BxujNgou8logNZGyzoirNbyGr+R81BHa3pE7xZ0hNxxk1 uUZXsLFbbIxt39g+KzKYrquciM765abSqLMi87b0v1a/GjqGIOKesM5ULUOYbarE Qr5MDhA6nOUk7lFag2/Eo9jP3bxvgPz6u2gDeLID1TLZGB/Y3WRTvBz06v8H6mZz 4uVtemPO5ym+owuEozVVPDKRyHuWQAijECv1k7wAnDbMBAn/S2bVvwSD8nnshKVz eAgY0MWh1gzTAVZHb5ULETP3q/2txObb+4lIYr0v272oHP13re7oBXbzxO2N6ps= =mF17 -----END PGP SIGNATURE----- --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac <theroarofthedragon@gmail.com> Subject: Re: Bug: XML entities in the ox-rss exporter Date: Thu, 26 May 2016 17:35:42 +0530 Message-ID: <87zirdf2i1.fsf@gmail.com> References: <87r3d05w5f.fsf@gmail.com> <8737p79o8m.fsf@saiph.selenimh> <87fut6qwen.fsf@gmail.com> <87bn3trun4.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org> Received: from eggs.gnu.org ([2001:4830:134:3::10]:43671) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <theroarofthedragon@gmail.com>) id 1b5u3Q-0006kQ-EW for emacs-orgmode@gnu.org; Thu, 26 May 2016 08:06:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <theroarofthedragon@gmail.com>) id 1b5u3M-0003Kg-4L for emacs-orgmode@gnu.org; Thu, 26 May 2016 08:06:19 -0400 Received: from mail-pa0-x232.google.com ([2607:f8b0:400e:c03::232]:34212) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <theroarofthedragon@gmail.com>) id 1b5u3L-0003KW-TF for emacs-orgmode@gnu.org; Thu, 26 May 2016 08:06:16 -0400 Received: by mail-pa0-x232.google.com with SMTP id qo8so29288334pab.1 for <emacs-orgmode@gnu.org>; Thu, 26 May 2016 05:06:15 -0700 (PDT) Received: from steel ([223.227.129.83]) by smtp.gmail.com with ESMTPSA id to9sm20102070pab.27.2016.05.26.05.06.10 for <emacs-orgmode@gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 26 May 2016 05:06:13 -0700 (PDT) In-reply-to: <87bn3trun4.fsf@gmail.com> 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: <http://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+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org> To: emacs-org <emacs-orgmode@gnu.org> --=-=-= Content-Type: multipart/signed; boundary="==-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --==-=-= Content-Type: text/plain > I think my patch introduces a bug in `org-rss-build-channel-info'. I'll > fix this and send a new patch soon. I didn't realize (plist-get info :title) returns a list, and not a string. I have now fixed the bug. Please find attached a new patch. --==-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJXRuaWAAoJEC4l7othgCuzIf8IAKEdwXtvVmIXCfgmSfAq7rFG I+2CM07iH7rG8SgyacNuqdPLZfgn4jmY2IOiR3Z0/Xz+EVZvUv9H8Z2mvvmwJVC6 891nDIKhyhRrg24HcuohSY3Q/JpjzT7SmbfX3ANw3HKYgXgoY45E3nbP+DJuzHST UzSXqPnZEJsk+4PvE4pulcQTwOAZjX9twIoK7Pvav+l2RJOndppLXw5GYkAWDkyc ZXVscTIcDAuiNamGg74lLzMSZVMvYM85S608z85agOko+kolZph1ExP/foE9q/rK BNHlDIlNza3IqEGL5XytGgAwcxsfAhporApO01yIFo0rgICdiOYFNFYXmSAbXW0= =agXr -----END PGP SIGNATURE----- --==-=-=-- --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=ox-rss-Encode-characters-to-their-XML-entities.patch >From 58c290c9308f07e44bf893331ccf9d9c5d255e04 Mon Sep 17 00:00:00 2001 From: Arun Isaac <theroarofthedragon@gmail.com> Date: Thu, 26 May 2016 17:24:29 +0530 Subject: [PATCH] ox-rss: Encode characters to their XML entities * contrib/lisp/ox-rss.el (org-rss-build-channel-info, org-rss-headline): Encode disallowed characters in `title' to their XML entities The `title' field is user specified and may contain characters such as "&", "<" or ">" that are disallowed in XML. These characters should be encoded into their corresponding XML entities. --- contrib/lisp/ox-rss.el | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/contrib/lisp/ox-rss.el b/contrib/lisp/ox-rss.el index 0c4a2f2..44ee8db 100644 --- a/contrib/lisp/ox-rss.el +++ b/contrib/lisp/ox-rss.el @@ -248,12 +248,13 @@ communication channel." (format-time-string "%a, %d %b %Y %H:%M:%S %z" (org-time-string-to-time pubdate0))))) - (title (or (org-element-property :RSS_TITLE headline) - (replace-regexp-in-string - org-bracket-link-regexp - (lambda (m) (or (match-string 3 m) - (match-string 1 m))) - (org-element-property :raw-value headline)))) + (title (org-rss-plain-text + (or (org-element-property :RSS_TITLE headline) + (replace-regexp-in-string + org-bracket-link-regexp + (lambda (m) (or (match-string 3 m) + (match-string 1 m))) + (org-element-property :raw-value headline))) info)) (publink (or (and hl-perm (concat (or hl-home hl-pdir) hl-perm)) (concat @@ -318,7 +319,7 @@ as a communication channel." (defun org-rss-build-channel-info (info) "Build the RSS channel information." (let* ((system-time-locale "C") - (title (plist-get info :title)) + (title (org-export-data (plist-get info :title) info)) (email (org-export-data (plist-get info :email) info)) (author (and (plist-get info :with-author) (let ((auth (plist-get info :author))) -- 2.8.2 --=-=-=-- From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou <mail@nicolasgoaziou.fr> Subject: Re: Bug: XML entities in the ox-rss exporter Date: Thu, 26 May 2016 15:22:59 +0200 Message-ID: <878tyx9cng.fsf@saiph.selenimh> References: <87r3d05w5f.fsf@gmail.com> <8737p79o8m.fsf@saiph.selenimh> <87fut6qwen.fsf@gmail.com> <87bn3trun4.fsf@gmail.com> <87zirdf2i1.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org> Received: from eggs.gnu.org ([2001:4830:134:3::10]:58455) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <mail@nicolasgoaziou.fr>) id 1b5vFn-0005Lb-4w for emacs-orgmode@gnu.org; Thu, 26 May 2016 09:23:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <mail@nicolasgoaziou.fr>) id 1b5vFl-00058z-8j for emacs-orgmode@gnu.org; Thu, 26 May 2016 09:23:10 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:36757) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <mail@nicolasgoaziou.fr>) id 1b5vFl-00058m-2R for emacs-orgmode@gnu.org; Thu, 26 May 2016 09:23:09 -0400 In-Reply-To: <87zirdf2i1.fsf@gmail.com> (Arun Isaac's message of "Thu, 26 May 2016 17:35:42 +0530") 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: <http://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+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" <emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org> To: Arun Isaac <theroarofthedragon@gmail.com> Cc: emacs-org <emacs-orgmode@gnu.org> Hello, Arun Isaac <theroarofthedragon@gmail.com> writes: > Subject: [PATCH] ox-rss: Encode characters to their XML entities > > * contrib/lisp/ox-rss.el (org-rss-build-channel-info, org-rss-headline): > Encode disallowed characters in `title' to their XML entities > > The `title' field is user specified and may contain characters such as > "&", "<" or ">" that are disallowed in XML. These characters should be > encoded into their corresponding XML entities. Applied. Thank you. Regards, -- Nicolas Goaziou