Hacker News new | ask | show | jobs
by Kiro 4226 days ago
> 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?

1 comments

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).