General discussion

Locked

WML : How to display "&" and "$" ?

By Cedric King ·
I perform a loop to add content from database to a string. Then after the loop is done, I will just Response.Write the string out. All the tags ie "<p>","</p>" and likes are being added in the process.
I keep hitting this error because of either the "&" or the "$". No matter how I Replace the string for "&" with "&amps;" or "\&", or the "$" with "&dol;", it does not work.
Can somebody help me out? Thanks.

This conversation is currently closed to new comments.

7 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

WML : How to display "&" and "$" ?

Hi!

I'm not to familiar with html, but it sounds like you might have to do it like this:

& = & in html code, so in order to get this in your html page when doing a response.write try adding & like: '&' into the string, if this dosen't work try '\&' and if that dosen't work try '\\&'.

One of theese three ways should work.
Same is for the $ &dol;.

/Hasse

Collapse -

WML : How to display "&" and "$" ?

by Cedric King In reply to WML : How to display "&" ...

I had tried these but it can't work too. Thanks for helping.

Collapse -

WML : How to display "&" and "$" ?

by //.ichael G In reply to WML : How to display "&" ...

I am assuming you are creating web content and it is the browser that you are getting the errors from.

The ampersand(&amp is added with
&

$ should be ok.

Collapse -

WML : How to display "&" and "$" ?

by Cedric King In reply to WML : How to display "&" ...

I am creating WAP content. I had read before from some article that WML got problem with & and $ but I can't get any solution from that. Never mind, thanks for helping anyway.

Collapse -

WML : How to display "&" and "$" ?

by RRV In reply to WML : How to display "&" ...

Try using char$(36) for $ and char$(3 for &. hope this gives a solution for you.

All the best

rvenkatesh@dubal.co.ae

Collapse -

WML : How to display "&" and "$" ?

by Cedric King In reply to WML : How to display "&" ...

Poster rated this answer

Collapse -

WML : How to display "&" and "$" ?

by Cedric King In reply to WML : How to display "&" ...

This question was closed by the author

Back to Web Development Forum
7 total posts (Page 1 of 1)  

Related Discussions

Related Forums