RAP MarkUp containing & character [message #1239478] |
Tue, 04 February 2014 09:38 |
|
Setting a Label with value:
<a href='http://www.iet.co.uk?a=1&b=2' target='_blank'>IET Classic Planes Ltd</a>
...and MarkUp in RAP causes a crash because of the & ampersand character:
java.lang.IllegalArgumentException: Failed to parse markup text
at org.eclipse.swt.internal.widgets.MarkupValidator.validate(MarkupValidator.java:60)
...
caused by:
...
org.xml.sax.SAXParseException: The reference to entity "b" must end with the ';' delimiter.
...
---
Just because you can doesn't mean you should
|
|
|
|
Re: RAP MarkUp containing & character [message #1239499 is a reply to message #1239492] |
Tue, 04 February 2014 10:14 |
|
Thanks Ralf, I should have thought of that, as we are already doing it when creating out XML!
It means that our XML has 2-levels of the & format:
<stdstx><a href='http://www.iet.co.uk?a=1&amp;b=2' target='_blank'>IET Classic Planes Ltd</a></stdstx>
Looks odd, but makes sense - thanks for your help!
John
---
Just because you can doesn't mean you should
|
|
|
Powered by
FUDForum. Page generated in 0.03033 seconds