Hi Virgil,
thanks a lot for your help.
But I explained the issue not so well. I need to obtain the strong
code, not to remove it. First code is the situation (without the
strong tag) and I need to obtain the second code (with strong).

Practically, I need to highlight the excerpt of the code, making it
strong.

Thanks again for your help.

On Dec 15, 5:25 pm, Virgil Spruit <virgilspr...@gmail.com> wrote:
> If you want to remove the strong tags you can use this 
> plugin;http://benalman.com/projects/jquery-unwrap-plugin/
>
> Or try these two lines of code;
>
> temp = $(".hentry").find(".excerpt").html() ;
> $(".hentry").find(".excerpt").before(temp).remove();
>
> It fills the temp with the content of your strong tag and places it
> before himself and the original.
>
> On Dec 15, 4:31 pm, caruso_g <peppecar...@gmail.com> wrote:
>
> > Hi,
> > I have a portion of code like:
>
> > <div class="hentry">
> >     <p><img width="160" height="120" alt="00000" src="/
> > img_2009/51/00000.jpg"/>
> >     Text fo the article excerpt
> >     <br/>
> >     <span id="more-00000"/>
> >     text of the article after the excerpt, and so on, and so on, and
> > so on, and so on,
> >     <a target="_blank" href="">link</a> and so on, and so on, and so
> > on, and so on,
> >     and so on, and so on, and so on.
> >     </p>
> > </div>
>
> > I need to edit it like:
>
> > <div class="hentry">
> >     <p>
> >     <strong class="excerpt">
> >     <img width="160" height="120" alt="00000" src="/
> > img_2009/51/00000.jpg"/>
> >     Text fo the article excerpt
> >     </strong>
> >     <span id="more-00000"/>
> >     text of the article after the excerpt, and so on, and so on, and
> > so on, and so on,
> >     <a target="_blank" href="">link</a> and so on, and so on, and so
> > on, and so on,
> >     and so on, and so on, and so on.
> >     </p>
> > </div>
>
> > How can I achieve that?
>
> > Thanks

Reply via email to