11 Replies Latest reply on Jan 20, 2008 3:47 PM by Stressed_Simon

    Stripping

    idesdema Level 1
      Hello.

      I am pulling chunks of html code and only want to display a snippet of the chunk - the image mainly.

      Here is what I am currently pulling:

      <p><a href=" http://www.yahoo.com">Yahoo!</a> news:</p>
      <p><a href=" http://www.yahoo.com/story/2166317809/" title="Test"><img src=" http://server3.static.yahoo.com/2378/2166317809_10a0c4_m.jpg" width="240" height="160" alt="Test" /></a></p>

      I want to end up with just this:

      <img src=" http://server3.static.yahoo.com/2378/2166317809_10a0c4_m.jpg" width="240" height="160" alt="Test" />

      I have done something along the same lines with an image path (I stripped off the characters after the second . ) but I was wondering how to do it with this longer string.

      Any ideas?

      Thanks!