[jQuery] Re: How to edit a portion of text

2009-12-18 Thread caruso_g
The code isn't really semantic, which makes it difficult to get to the excerpt text. If you can't differentiate the excerpt from the content following by extra spans then there isn't a good way to catch your excerpt. I know, but sadly I have no control on it, it's just like WordPress put out

[jQuery] Re: How to edit a portion of text

2009-12-16 Thread Virgil Spruit
The code isn't really semantic, which makes it difficult to get to the excerpt text. If you can't differentiate the excerpt from the content following by extra spans then there isn't a good way to catch your excerpt. On Dec 15, 5:49 pm, caruso_g peppecar...@gmail.com wrote: Hi Virgil, thanks a

[jQuery] Re: How to edit a portion of text

2009-12-15 Thread Virgil Spruit
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

[jQuery] Re: How to edit a portion of text

2009-12-15 Thread caruso_g
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,