You have to make decision what is more important in this case.
Another option is to make a class with conversion method instead of function. It would resolve your both problems but could be a bit slower than a function.
>Yes of course,
>but.. it would be nice to write function at once and use it later ... this question not first time appears.. in some cases it was short STRTRAN.. in another WWC and HtmlEncode.. but all ways provide minimal HTML encoding..
>Now I have a chance to write this function as application basic...
>
>But from performance point - I agree...
>
>>Instantiatin XMLDOM object could be expensive but why would you instantiate it for each item? You can do it once before scan.
>>
>>>Yes.. I can't answer.. .. Lets imagine one initialization of DOM object take a 1 second :))) then... if I will every time re-init this object.. and I have SCAN/ENDSCAN for for example...60 items.. It make convert operation not acceptable by execution time :)
>>>But it was just a mind.. nothing seriously.
>>>
--sb--