Content Controls not accepting <,>
Currently I am working on MS Word 2007 Addin.I am getting Problem with one custom control.
The ContentControl is having multiline property to true.it is accepting values from the database. if any 开发者_运维百科database value is having special characters like <,> the content control will stop showing the data.
Suppose the data in the database is Male, Female, Children(<5), Children(>10)
, The content control is accepting only upto Male, Female, Children(
.
For other data like strings, numeric data it is working fine.
Please Help me in solving this issue.
I am not at all familiar with the Office addins but maybe it uses some XML or XAML (which is XML-based) strategy.
In this case XML escape characters or encodings might help.
Try >
for >
and <
for <
.
精彩评论