Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> And, decompiled or not; this is not the result of proper C#- or for that matter any modern language- coding:

> r = r + "<code>" + this.hardErrors[i] + "</code>";

What's wrong with this?



Assuming that r contains XML and this.hardErrors[i] is already escaped for XML safety, that is probably what you'd expect to see a code-generated XML generator doing, as well as hand-generated XML (if generating text directly and not an intermediate abstract representation of the XML).




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: