Medium

부분 유료
분류별 Nishu Jain | 업데이트됨 לפני 24 ימים | Data
인기

9.8 / 10

지연 시간

731ms

서비스 수준

100%

Health Check

N/A

모든 토론으로 돌아가기

Get Article's HTML endpoint w/ broken img tag

Rapid account: Fbanyai As WF 9 K Bhx VN
fbanyai-asWF9KBhxVN
לפני 10 חודשים

Hello Nishu,

I’m having an issue when calling the Get Article’s HTML endpoint. For some reason it’s adding an incomplete img tag after the initial div which is breaking my HTML post processing. Please notice that the ID that I’m providing is just a sample - the issue is happening in many other articles.

Sample Article ID: b3f5a2c1800b

Sample Result from the API call:
{
“html”: “<div class=“blog”><img alt="Minimalist \n\n\nMinimalism: Love People Use things and not the other way around.\n\nEasier said than done I say but you know being a minimalist really is hard. It’s not just about love and use asis the case in the documentary…” /></div>"
}

Original Medium Article: https://medium.com/@teek19035/minimalist-minimalism-love-people-use-things-and-not-the-other-way-around-b3f5a2c1800b

Could you please help me?

Thank you!

Rapid account: Fbanyai As WF 9 K Bhx VN
fbanyai-asWF9KBhxVN Commented לפני 10 חודשים

Hey Nishu, thank you for your prompt reply and support!

Indeed! Just saw here, the whole article is inside a <figcaption> tag (and it doesn’t make any sense at all… LOL).

The other cases I have here seem to follow this pattern (malformed source HTML).

Thanks,
Flávio

Rapid account: Nishujain 199719 Vg Ifu FH Zx VZ
nishujain199719-vgIfuFHZxVZ Commented לפני 10 חודשים

Hey there, I saw the article and it seems like that the author has mistakenly written all the Article’s text in the image caption itself. That’s why everything is in the “alt” attribute of the “img” tag in the rendered HTML format.

I’ve tested the code again and it is working perfectly fine.

아래에 의견을 추가하고 토론에 참여하세요.

새 댓글을 게시하려면 로그인 / 가입