/*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,"&","&amp;")
	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
}