private void copyClick(object sender, RoutedEventArgs e)
{
target.Text = "";
string from = source.Text;
for (int i = 0; i != from.Length; i++)
{
char current = from[i];
copyOne(current);
}
}
private void copyOne(char current)
{
switch (current)
{
case '>':
target.Text += ">";
break;
case '<':
target.Text += "<";
break;
case '"':
target.Text += """;
break;
default:
target.Text += current;
break;
}