Browsing tag

ie

IE7/8 .text() vs .html()

dc

So .text() doesn’t work for retrieving the content. The solution use .html(). The problem with this is that in IE 7/8 you end up with extra white space in the content. The solution $.trim(), and now you have your content the same as modern browsers using .text(). This stumped me long enough while using a … Continued