| @@ 1327-1338 (lines=12) @@ | ||
| 1324 | continue; |
|
| 1325 | } |
|
| 1326 | // Is this a lt sign? |
|
| 1327 | elseif ($string{$i} == '<') |
|
| 1328 | { |
|
| 1329 | // Probably HTML? |
|
| 1330 | if ($string{$i + 1} != ' ') |
|
| 1331 | $in_html = true; |
|
| 1332 | // Assume we need an entity... |
|
| 1333 | else |
|
| 1334 | { |
|
| 1335 | $new_string .= '<'; |
|
| 1336 | continue; |
|
| 1337 | } |
|
| 1338 | } |
|
| 1339 | // What about gt? |
|
| 1340 | elseif ($string{$i} == '>') |
|
| 1341 | { |
|
| @@ 1340-1351 (lines=12) @@ | ||
| 1337 | } |
|
| 1338 | } |
|
| 1339 | // What about gt? |
|
| 1340 | elseif ($string{$i} == '>') |
|
| 1341 | { |
|
| 1342 | // Will it be HTML? |
|
| 1343 | if ($in_html) |
|
| 1344 | $in_html = false; |
|
| 1345 | // Otherwise we need an entity... |
|
| 1346 | else |
|
| 1347 | { |
|
| 1348 | $new_string .= '>'; |
|
| 1349 | continue; |
|
| 1350 | } |
|
| 1351 | } |
|
| 1352 | // Is it a slash? If so escape it... |
|
| 1353 | if ($string{$i} == '\\') |
|
| 1354 | $new_string .= '\\'; |
|