ugly result with Replace function
I want to post a message on a site, starting from a simple text template, in which I want to set a little text.
tplText = "<br><table width="100%" border="0" cellspacing="0" cellpadding="5"><tr align="left" valign="top">
<td width="20"><img src="/_images/b_help.gif" width="15" height="14" border="0" align="baseline"></td><td><span class="tekst10pxRood" style="font-size:12px;line-height:16px">[MESSAGE]<br><a href="[LINK]">Meer info</a></span> </td></tr>
</table>"
fillstring = "&é"'(§è!çà )-^$ùµ=:;,1234567890°¨*£%+/.?´`~"
nlstr = tplText.Replace("[MESSAGE]", fillstring);
Result : "&é"'(§è!çà )-^MESSAGENL=[Dit is een NL Test"
i can see that the $ character causes the problem, but I don't know the solution
|