Page 1 of 1

Special Charactes in Template port Data String

Posted: 10 Jul 2015, 08:52
by Eric_RD
If I want to pass a special Character through a template Port for example "&" I have to write the HTML/XML code "&"
However "<" and ">" for example are interpreted correctly, so there is no need for html conversion.
So a general html encoding like System.Net.Webutility.HtmlEncode(string) does not Work.
If I extract the string inside the Template port the "&" has been converted to "&".
Now I want to pass this string to another template Port inside the other one so i have to replace "&" with "&amp," again manually.

Is there a way to handle special characters in template Ports in a save way without worrying about each string and each character?

For now I just try to stay with a-z and 0-9 to avoid these problems. ;)

Re: Special Charactes in Tamplate port Data String

Posted: 22 Jul 2015, 09:52
by Götz_B
Hi Eric,

I tried, but couldn't achieve your result. What do you mean by "pass through a template port" ? I tried special characters in the Template Data as well as on exposed properties. Both worked as expected.
A simple scene that shows the behaviour could help. Maybe it depends on the systems culture or language settings.