Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to get content with tags #7

Open
squallstar opened this issue Sep 24, 2014 · 4 comments
Open

Is there a way to get content with tags #7

squallstar opened this issue Sep 24, 2014 · 4 comments

Comments

@squallstar
Copy link

Hello,

thanks for making such a good open-source library. I was wondering whether there is a way to have html tags in the content, since it seems to strip everything.

Thanks

@matth
Copy link
Owner

matth commented Sep 25, 2014

Hey, I'm not sure I understand, do you mean things like

and tags?

Unfortunately the underlying library strips out any formatting like this so it would not be possible to display it.

@squallstar
Copy link
Author

Yeah I meant tags, the thing is that the library is also stripping any image (tag/url) and links from the content — therefore I'm not able to properly display articles with images between paragraphs. :( any clue?

@matth
Copy link
Owner

matth commented Sep 25, 2014

No should extract the image too as a separate field (if it finds one it deems suitable :)

Here's an example:

http://juicer.herokuapp.com/api/article?url=http://www.bbc.co.uk/news/world-africa-16377824

Are you installing yourself or using the deb package? I think it's up-to-date with the image extraction feature but might be wrong!

@squallstar
Copy link
Author

Well it extracts the "lead" image, but if the article has more than one image it doesn't keep the other ones that were placed in the middle of the content.

e.g. http://juicer.herokuapp.com/api/article?url=http://www.polygon.com/2014/9/25/6255023/forza-horizon-2-review-xbox-one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants