html() would be no good for what I'm trying to do. Basically I have <pre> blocks which contain pre-formatted source code (including a lot of extra html spans and what not for syntax highlighting and line numbering). I then take the text() of the <pre>'s and insert it into a <textarea> which will now contain a plain text version of the code from the <pre>. Works perfectly in anything but IE.
On 7 Jul, 12:49, "Dan G. Switzer, II" <[EMAIL PROTECTED]> wrote: > >I'm having some issues when calling $("something").text() in IE 6/7. > >Basically I'm getting the calling text() on a <pre> element which is > >whitespace sensitive. In Firefox and Safari it works perfectly > >returning the text with whitespace intact. Is it possible to make it > >work in IE or shall I give up? > > Have you tried using html() instead? > > -Dan