Browse CVS Repository
Diff of /gikonavigoeson/gikonavi/MojuUtils.pas
Parent Directory
| Revision Log
| Revision Graph
| Patch
| 377 |
end; |
end; |
| 378 |
end; |
end; |
| 379 |
|
|
| 380 |
//! 無害化(& -> & " -> &auot; に変換する) |
//! 無害化(& -> & " -> " に変換する) |
| 381 |
function Sanitize(const s: String): String; |
function Sanitize(const s: String): String; |
| 382 |
begin |
begin |
| 383 |
Result := CustomStringReplace(s, '&', '&'); |
// 余分にサニタイズされないようにいったん元に戻す |
| 384 |
|
Result := UnSanitize(s); |
| 385 |
|
Result := CustomStringReplace(Result, '&', '&'); |
| 386 |
Result := CustomStringReplace(Result, '"', '"'); |
Result := CustomStringReplace(Result, '"', '"'); |
| 387 |
end; |
end; |
| 388 |
//! 無害化解除(& -> & &auot; -> " に変換する) |
//! 無害化解除(& -> & " -> " に変換する) |
| 389 |
function UnSanitize(const s: String): String; |
function UnSanitize(const s: String): String; |
| 390 |
begin |
begin |
| 391 |
Result := CustomStringReplace(s, '"', '"'); |
Result := CustomStringReplace(s, '"', '"'); |
|
|
Legend:
| Removed from v.1.24 |
|
| changed lines |
| |
Added in v.1.25 |
|
|
| |