I'm using UltraFormattedTextEditor in a win app to format the email in my application, and using one populated list to insert some text at selected place in the same editor. If I pass a value enclosed in <%%> tags to InsertValue function, it throws xml serialization error, like -
this._uiMainTextEditor.EditInfo.InsertValue("<%Var1%>");
I need this <%%> tag to pass some dynamic content, how can I do this?
-Anand
Thanks Mike, I tried it and it worked.
You can also insert actual Less than (<) and greater than (>) signs into the display by using escape codes.
For less than, you would use "<"
And for greater than, you would use ">"
The parser for the UltraFormattedTextEditor doesn't understand that unsupported tag and by design throws an exception because it's invalid.
I would suggest switching over to a value formatted like %%Var1%%. It'll be much safer in regards to tag based parsing engines, and is same format that a lot of popular development software tools use.