Comments (1)
XML  
entity must be used instead of
HTML one as mentioned in
Making
work in XML, RSS, and Atom.
So quickfix:
(defun decode-entities (html)
(let ((html-non-breaking-space " ")
(xml-non-breaking-space " "))
(with-temp-buffer
(save-excursion
(insert html))
(save-excursion
(while (re-search-forward html-non-breaking-space nil t)
(replace-match xml-non-breaking-space nil nil)))
(xml-parse-string))))
But personally I prefer the following (space in regex is incerted non breaking space) because with Elfeed non breaking spaces IMHO useless and irritate only:
(defun decode-entities (html)
(let ((crap "\\(\\ \\|\\ \\| \\)"))
(with-temp-buffer
(save-excursion
(insert html))
(save-excursion
(while (re-search-forward crap nil t)
(replace-match " " nil nil)))
(xml-parse-string))))
BTW I use it regerdless to tags, for all feeds.
from elfeed-goodies.
Related Issues (20)
- typo in `elfeed-goodies/split-show-prev'. HOT 1
- How to display date HOT 2
- Error installing from melpa HOT 1
- Error when compiling HOT 2
- Mark read from view buffer HOT 1
- [bug] emacs crashes when in elfeed when elfeed-goodies is loaded
- Using speedbar-sr on the left, opening an article duplicates the speedbar HOT 1
- Split panel doesn't work
- elfeed-entry "Subject" field unreadable
- "Variable binding depth exceeds max-specpdl-size" error
- Some feeds wont appear in the buffer elfeed entry
- Add option for 'split-pane' mode
- The state of goodies HOT 5
- Feature request: use split pane stand-alone HOT 5
- Replace ace-jump-mode, eliminate cl warning HOT 1
- How to disable the line truncating? HOT 4
- Getting goodies into a *good* state HOT 1
- Pane splits vertically instead of horizotally HOT 1
- Feature Request: define new faces instead of reusing elfeed faces HOT 1
- [Feat] Allow configuring wide threshold in number of characters (instead of percentage)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from elfeed-goodies.