r696 bug?

Download and discuss official beta builds here

r696 bug?

Postby jhovesen » Tue Jun 28, 2011 3:22 am

Shouldn't
Code: Select all
stringToEscape = stringToEscape.replace("<", "&lt;");
stringToEscape = stringToEscape.replace(">", "&gt;");
stringToEscape = stringToEscape.replace("&", "&amp;");

be replaced with
Code: Select all
stringToEscape = stringToEscape.replace("&", "&amp;");
stringToEscape = stringToEscape.replace("<", "&lt;");
stringToEscape = stringToEscape.replace(">", "&gt;");

to avoid replacing the '&' from "&lt;" and "&lt;" with "&amp;" resulting in "&amp;lt;" etc?
jhovesen
 
Posts: 8
Joined: Tue Mar 03, 2009 1:06 am

Re: r696 bug?

Postby Raptor399 » Tue Jun 28, 2011 7:21 am

Sharp! :oops:
Fixed in r699.
Raptor399
Project Member
 
Posts: 1916
Joined: Thu Mar 10, 2011 12:06 am


Return to Beta Builds

Who is online

Users browsing this forum: Bing [Bot] and 6 guests