API: Article content | getHeadlines vs getArticle

Development-related discussion, including bundled plugins
cgrinds
Bear Rating Trainee
Bear Rating Trainee
Posts: 34
Joined: 10 Apr 2013, 01:38

API: Article content | getHeadlines vs getArticle

Postby cgrinds » 15 May 2013, 17:53

Someone reported that embedded videos weren't working in DripDripDrop. When
I dug into this I noticed that getHeadlines with show_content: true does not
return the same content as getArticle. getHeadlines does the additional
santitize step and it appears there is no way to override this at the API
level.

So getHeadlines returns sanitized content while getArticle returns the raw
content. I assume this is an intentional design decision to err on the side of
sanitizing. Did you ever consider exposing the sanitize decision to the
getHeadlines API?

Anything I'm missing here? and thanks

User avatar
fox
^ me reading your posts ^
Posts: 6318
Joined: 27 Aug 2005, 22:53
Location: Saint-Petersburg, Russia
Contact:

Re: API: Article content | getHeadlines vs getArticle

Postby fox » 15 May 2013, 18:08


cgrinds
Bear Rating Trainee
Bear Rating Trainee
Posts: 34
Joined: 10 Apr 2013, 01:38

Re: API: Article content | getHeadlines vs getArticle

Postby cgrinds » 15 May 2013, 18:20

Awesome, thxs for the quick patch.


Return to “Development”

Who is online

Users browsing this forum: No registered users and 2 guests