[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [xml] need correct string function



hi.
	Hi:
easy question:

what is the function to manage this:
("&lt;"), ("<"));
("&gt;"), (">"));
("&amp;"), ("&"));
("&apos;"), ("'"));
("&quot;"), ("\""));

Example:

string = FunctionX("please_convert_me_'_<_>_&_\"");

string2 = "<blah param='";
string2 += string;
string2 += "'/>";


	Take a look at:
	http://xmlsoft.org/html/libxml-entities.html
	
maybe: http://xmlsoft.org/html/libxml-entities.html#xmlEncodeSpecialChars


--

[]'s
Lucas Brasilino
brasilino recife pe gov br
http://www.recife.pe.gov.br
Emprel -	Empresa Municipal de Informatica (pt_BR)
		Municipal Computing Enterprise (en_US)
Recife - Pernambuco - Brasil
Fone: +55-81-34167078




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]