Print Page | Close Window

Using the & character in markup

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=12175
Printed Date: 14 September 2025 at 3:33pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Using the & character in markup
Posted By: cpede
Subject: Using the & character in markup
Date 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



Replies:
Posted By: znakeeye
Date 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


Posted By: cpede
Date 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 - https://forum.codejock.com/forum_posts.asp?TID=12050 ?
-cpede



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net