joe ertaba wrote: > I can get the text of my_pre using innerHTML, but in my case I need > plain text (redblue) > Is there any way to extract the text from the pre element without format? Try creating a range, selecting the pre element, and then converting it to a string.