parser icon indicating copy to clipboard operation
parser copied to clipboard

Stripping src element

Open felagund opened this issue 2 years ago • 1 comments

Expected Behavior

Image should be shown

Current Behavior

Image is not shown and istead its alt text is shown

Steps to Reproduce

When processing this url: https://denikreferendum.cz/clanek/34961-nova-vlna-teroru-a-nasili-v-palestine-a-izraeli-a-cesky-postoj

The following code:

<div class="articleImage svelte-1l459ay">
   <div class="drImageResizeButton svelte-1l459ay"><span>↗</span></div>
   <img alt="Jako již tradičně, český většinový pohled na&nbsp;izraelsko-palestinský konflikt je&nbsp;posunutý k&nbsp;nekritické podpoře Izraele. Typickým stereotypem je, že když spáchá násilnost Palestinec, je&nbsp;to teroristický útok, a&nbsp;když obdobnou násilnost spáchá židovský osadník, je&nbsp;to prostě násilnost. Foto FB&nbsp;jewish-eshop.cz" class="svelte-1l459ay visible" src="https://static.denikreferendum.cz/pictures/49089/article_body/49089.jpg" style="min-height: auto; height: 467px;"> 
   <div class="articleImageLabel svelte-1l459ay">Jako již tradičně, český většinový pohled na&nbsp;izraelsko-palestinský konflikt je&nbsp;posunutý k&nbsp;nekritické podpoře Izraele. Typickým stereotypem je, že když spáchá násilnost Palestinec, je&nbsp;to teroristický útok, a&nbsp;když obdobnou násilnost spáchá židovský osadník, je&nbsp;to prostě násilnost. Foto FB&nbsp;jewish-eshop.cz</div>
</div>

is stripped of its src element, so it results in the alttext being shown instead (so it is duplicated, because that text is then on the website inclued in the next element.

Detailed Description

This is as consumed by NewsBlur. I was asked to open an issue here, I hope they will be able to fill in the technical details, I have no idea how it is hooked together.

It then looks like this: 5f15e30aa93a351b0d39ce7c328d73be6a075ef0

felagund avatar Mar 15 '23 12:03 felagund

any update about this?

dwirandyh avatar Dec 21 '23 08:12 dwirandyh