[Half-Life AMXX] / compiled / climb_2_0_a2 / amxmodx / scripting / include / string2.inc Repository:
ViewVC logotype

View of /compiled/climb_2_0_a2/amxmodx/scripting/include/string2.inc

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (download) (annotate)
Tue Oct 30 09:08:11 2007 UTC (16 years, 5 months ago) by ian
File size: 534 byte(s)
/*Additional String manipulation
* Version 0.1
*
* by Don Juan-jello
*
* This file is provided as is (no warranties).
*/

#if defined _string2_included
  #endinput
#endif
#define _string2_included

//Replace HTML Special Characters with Entity References
stock htmlspecialchars(string[]){
	replace(string,512,"&","&")
	replace(string,512,"<","&lt;")
	replace(string,512,">","&gt;")
	return 1
}
//Makes an HTTP:// URL
stock httpurl(string[]){
	format(string,512,"HREF=^"http:/%s%s^"","/",string)
	return 1
}

Contact
ViewVC Help
Powered by ViewVC 1.0.4