Parent Directory
|
Revision Log
Revision 1 - (view) (download)
1 : | ian | 1 | /* |
2 : | string2 v0.1 | ||
3 : | Copyright (C) 2006-2007 Ian (Juan) Cammarata | ||
4 : | |||
5 : | This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. | ||
6 : | |||
7 : | This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. | ||
8 : | |||
9 : | You should have received a copy of the GNU General Public License along with this program; go to http://www.opensource.org/licenses/gpl-license.php | ||
10 : | Additional String manipulation | ||
11 : | */ | ||
12 : | |||
13 : | #if defined _string2_included | ||
14 : | #endinput | ||
15 : | #endif | ||
16 : | #define _string2_included | ||
17 : | |||
18 : | //Replace HTML Special Characters with Entity References | ||
19 : | stock htmlspecialchars(string[]){ | ||
20 : | new str2[512] | ||
21 : | format(str2,511,string) | ||
22 : | replace(str2,999,"&","&") | ||
23 : | replace(str2,999,"<","<") | ||
24 : | replace(str2,999,">",">") | ||
25 : | return str2 | ||
26 : | } |
Contact | ViewVC Help |
Powered by ViewVC 1.0.4 |