To fix the problem of losing HTML formatting in the first paragraph, you could use the jQuery html() function instead of the “textContent” property. I believe this would just be a simple change to your existing markup.

posted by John Dilworth on Wednesday, Dec 03, 2008