[Half-Life AMXX] / include / string2.inc Repository:
ViewVC logotype

Annotation of /include/string2.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 25 - (view) (download)

1 : ian 1 /*
2 :     string2 v0.1
3 :     Copyright (C) 2006-2007 Ian (Juan) Cammarata
4 :    
5 : ian 25 This program is free software: you can redistribute it and/or modify
6 :     it under the terms of the GNU Affero General Public License as
7 :     published by the Free Software Foundation, either version 3 of the
8 :     License, or (at your option) any later version.
9 : ian 1
10 : ian 25 This program is distributed in the hope that it will be useful,
11 :     but WITHOUT ANY WARRANTY; without even the implied warranty of
12 :     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 :     GNU Affero General Public License for more details.
14 : ian 1
15 : ian 25 You should have received a copy of the GNU Affero General Public License
16 :     along with this program. If not, see <http://www.gnu.org/licenses/>.
17 :     --------------------------------------------------------------------------------
18 :     http://ian.cammarata.us
19 :    
20 : ian 1 Additional String manipulation
21 :     */
22 :    
23 :     #if defined _string2_included
24 :     #endinput
25 :     #endif
26 :     #define _string2_included
27 :    
28 :     //Replace HTML Special Characters with Entity References
29 :     stock htmlspecialchars(string[]){
30 :     new str2[512]
31 :     format(str2,511,string)
32 :     replace(str2,999,"&","&amp;")
33 :     replace(str2,999,"<","&lt;")
34 :     replace(str2,999,">","&gt;")
35 :     return str2
36 : ian 25 }

Contact
ViewVC Help
Powered by ViewVC 1.0.4