![]() |
Using the & character in markup |
Post Reply ![]() |
Author | |
cpede ![]() Senior Member ![]() Joined: 13 August 2004 Location: Denmark Status: Offline Points: 683 |
![]() ![]() ![]() ![]() ![]() Posted: 17 September 2008 at 8:43am |
I just realized that using the & character causes the markup to render wrong. When I have a sentence in the TextBlock with a "&" it appends a";" to the end? How to avoid this?
-cpede
|
|
![]() |
|
znakeeye ![]() Senior Member ![]() ![]() Joined: 26 July 2006 Status: Offline Points: 1672 |
![]() ![]() ![]() ![]() ![]() |
Perhaps the HTML-equivalence for "Ampersand" would work?
&MyText --> &MyText
Try it. I want to know if it works :P
|
|
![]() |
|
cpede ![]() Senior Member ![]() Joined: 13 August 2004 Location: Denmark Status: Offline Points: 683 |
![]() ![]() ![]() ![]() ![]() |
You are probably right. The funny this is that I'm using the CXTPPropExchange class to save the text. And when reading from this XML file I use & but this is converted during the reading to a single "&" and then when put into the markup it fails
![]() It actually now goes back to my question of having ![CDATA in CXTPPropExchange https://forum.codejock.com/forum_posts.asp?TID=12050?
-cpede
|
|
![]() |
Post Reply ![]() |
|
Tweet
|
Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |