Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Using the & character in markup
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Using the & character in markup

 Post Reply Post Reply
Author
Message
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 683
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Topic: Using the & character in markup
    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
Back to Top
znakeeye View Drop Down
Senior Member
Senior Member
Avatar

Joined: 26 July 2006
Status: Offline
Points: 1672
Post Options Post Options   Thanks (0) Thanks(0)   Quote znakeeye Quote  Post ReplyReply Direct Link To This Post Posted: 17 September 2008 at 8:57am
Perhaps the HTML-equivalence for "Ampersand" would work?
 
&MyText      --> &MyText
 
Try it. I want to know if it works :P
Back to Top
cpede View Drop Down
Senior Member
Senior Member


Joined: 13 August 2004
Location: Denmark
Status: Offline
Points: 683
Post Options Post Options   Thanks (0) Thanks(0)   Quote cpede Quote  Post ReplyReply Direct Link To This Post Posted: 17 September 2008 at 9:02am
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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.031 seconds.