Issue #4 resolved

img.remove() bug

Anonymous created an issue

Hi Olivier,

I have a html content like this :



<div class="portlet"> <a href="/toto"><img src ="myimage" />My link text</a> <a href="/toto2"><img src ="myimage2" />My link text 2</a> </div>


I try to remove all images inside .portlet containers like this :



pq(".portlet img").remove() }}}

All the text around image is removed (ex : My link text)


Comments (1)

  1. Log in to comment