emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: David Maus <dmaus@ictsoc.de>
To: emacs-orgmode@gnu.org
Subject: [PATCH 4/4] Unescape rss element content.
Date: Sat, 19 Jun 2010 16:25:41 +0200	[thread overview]
Message-ID: <1276957541-29908-5-git-send-email-dmaus@ictsoc.de> (raw)
In-Reply-To: <87wrtvdzv2.fsf@gmail.com>

* org-feed.el (org-feed-parse-rss-entry): Unescape rss element
  content.
---
 lisp/org-feed.el |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/org-feed.el b/lisp/org-feed.el
index 2621008..e7fd0f2 100644
--- a/lisp/org-feed.el
+++ b/lisp/org-feed.el
@@ -617,7 +617,7 @@ containing the properties `:guid' and `:item-full-text'."
 			      nil t)
       (setq entry (plist-put entry
 			     (intern (concat ":" (match-string 1)))
-			     (match-string 2))))
+			     (org-feed-unescape (match-string 2)))))
     (goto-char (point-min))
     (unless (re-search-forward "isPermaLink[ \t]*=[ \t]*\"false\"" nil t)
       (setq entry (plist-put entry :guid-permalink t))))
@@ -650,8 +650,8 @@ formatted as a string, not the original XML data."
                             'href)))
     ;; Add <title/> as :title.
     (setq entry (plist-put entry :title
-                           (car (xml-node-children
-                                 (car (xml-get-children xml 'title))))))
+			   (org-feed-unescape (car (xml-node-children
+						    (car (xml-get-children xml 'title)))))))
     (let* ((content (car (xml-get-children xml 'content)))
            (type (xml-get-attribute-or-nil content 'type)))
       (when content
-- 
1.7.1

  parent reply	other threads:[~2010-06-19 14:27 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-19  3:15 org-feed not working for codeproject zwz
2010-06-19 10:48 ` David Maus
2010-06-19 11:29   ` zwz
2010-06-19 14:25     ` [PATCH 0/4] org-feed: Improve feed parsing David Maus
2010-07-01 13:23       ` Carsten Dominik
2010-07-01 18:02         ` [PATCH] Resubmit: Remove superfluous lambda David Maus
2010-07-01 18:02         ` [PATCH] " David Maus
2010-07-02  4:40           ` Carsten Dominik
2010-07-02  6:04             ` David Maus
2010-07-02 13:21               ` Sebastian Rose
2010-07-02 13:23                 ` John Wiegley
2010-07-02 13:49                   ` Sebastian Rose
2010-07-02 13:53                     ` John Wiegley
2010-07-02 13:55                       ` Sebastian Rose
2010-07-06  7:44                 ` Carsten Dominik
2010-06-19 14:25     ` [PATCH 1/4] Respect possible XML namespace of rss:item elements David Maus
2010-06-19 14:25     ` [PATCH 2/4] Ignore case of rss element names David Maus
2010-06-19 14:25     ` [PATCH 3/4] Unescape protected entities defined in `xml-entity-alist' David Maus
2010-06-19 14:25     ` David Maus [this message]
2010-06-19 14:28       ` [PATCH] Declare variable `xml-entity-alist' for byte compiler David Maus
2010-06-19 14:44         ` [PATCH] Remove superfluous lambda David Maus

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=1276957541-29908-5-git-send-email-dmaus@ictsoc.de \
    --to=dmaus@ictsoc.de \
    --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 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).