issue while minifying with special characters exists in latest release

Dec 16, 2013 at 4:53 PM
Looks like issue mentioned in the below site exists in latest version which was working fine 4.47 version.

http://xenforo.com/community/threads/javascript-minify-code-special-html-characters-problem.36352/
Coordinator
Dec 16, 2013 at 5:26 PM
So when I minify:
string = string
                .replace(/&/g, "&")
                .replace(/&lt;/g, "<")
                .replace(/&gt;/g, ">")
                .replace(/&quot;/g, '"')
                .replace(/&#039;/g, "'");

            if(options == 'space')
            {
                string = string
                    .replace(/    /g, '\t')
                    .replace(/&nbsp;/g, '  ')
                    .replace(/<\/p>\n<p>/g, '\n');
            }
I get:
string=string.replace(/&amp;/g,"&").replace(/&lt;/g,"<").replace(/&gt;/g,">").replace(/&quot;/g,'"').replace(/&#039;/g,"'");options=="space"&&(string=string.replace(/    /g,"\t").replace(/&nbsp;/g,"  ").replace(/<\/p>\n<p>/g,"\n"))
What's wrong with that? What part is incorrect?
Marked as answer by Lacrymosa on 12/16/2013 at 10:40 AM
Dec 16, 2013 at 5:41 PM
My bad.... its working fine. looks like files where cached on my end.