Comments (2)
In retrospect that was a very silly question - I'm really misusing the SAX part of the project. Still, if you could provide me with some suggestions on how a browser-based execution would parse a remote document it'd be appreciated.
from readabilitysax.
This doesn't seem to be a problem of ReadabilitySAX, as a parsing error message is returned. The title gets returned because the document gets appended to the error (as the message says). The problem seems to be that you are using an XML parser to parse HTML. Have you tried changing the mime-type?
(I have no idea if this is working, as I don't own a Playbook:)
var xmlDoc = parser.parseFromString(str_doc, "text/xml"); => var xmlDoc = parser.parseFromString(str_doc, "text/html");
from readabilitysax.
Related Issues (20)
- ReDoS vulnerability in readabilitySAX.js
- Not grabbing images from twitpic. HOT 1
- Misses <img> with height/width added with CSS HOT 2
- Bug in DomAsSax HOT 3
- Add share and nojavascript to unlikelyCandidates HOT 3
- Issue with wikipedia link HOT 3
- Article images need better detection HOT 2
- Handling double images HOT 5
- Weird chars show up HOT 1
- Links to the page root aren't resolved
- There's a problem with the cnn url http://money.cnn.com/2013/01/23/news/economy/mickelson-taxes/index.html HOT 7
- cannot read http://developers.google.com/chrome-develo per-tools/docs/console HOT 1
- Command line client returns error HOT 2
- Handle stream errors HOT 7
- Stucks sometimes on piping stage in the middle of stream HOT 12
- script is sometimes not filtered in my example HOT 5
- readabilitySAX doesn't handle web pages which require cookie HOT 2
- readibilitySAX can be misled by multiple <title> tags
- Take into account text in divs
- Adopt test cases from mozilla/readability
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 readabilitysax.