safer order of replacement

This commit is contained in:
Caolán McNamara 2013-03-14 11:25:29 +00:00
parent 4cc48f0b0d
commit 0fe15bf8cf

View File

@ -57,8 +57,8 @@
+ std::string entry((*slst)[i]);
free((*slst)[i]);
+ myrep(entry, "\t", " ");
+ myrep(entry, "<", "&lt;");
+ myrep(entry, "&", "&amp;");
+ myrep(entry, "<", "&lt;");
+ r.append(entry);
+
+ r.append("</a>");