| 1367 | // ---------------------------------------------------------------------------------------- |
| 1368 | |
| 1369 | string add_entity_ref (const string& str) |
| 1370 | { |
| 1371 | string temp; |
| 1372 | for (unsigned long i = 0; i < str.size(); ++i) |
| 1373 | { |
| 1374 | if (str[i] == '&') |
| 1375 | temp += "&"; |
| 1376 | else if (str[i] == '<') |
| 1377 | temp += "<"; |
| 1378 | else if (str[i] == '>') |
| 1379 | temp += ">"; |
| 1380 | else |
| 1381 | temp += str[i]; |
| 1382 | } |
| 1383 | return temp; |
| 1384 | } |
| 1385 | |
| 1386 | // ---------------------------------------------------------------------------------------- |
| 1387 |