Print Page | Close Window

Char &

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=21212
Printed Date: 29 March 2026 at 7:41am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Char &
Posted By: Marcvanu
Subject: Char &
Date Posted: 04 September 2006 at 11:08am
Sometimes I need to insert hyperlinks with dynamic variables. Therefore I need to use the caracter & . For exampe Test.as?Lang=Fr&Target=Test.
The problem is that RTE does not like it and it is automatically transformed into &. I tried with the ASCII code & but it does not help.
What can I do ?


-------------
Mvu
Brussels



Replies:
Posted By: WebWiz-Bruce
Date Posted: 04 September 2006 at 1:20pm
This type of thing is handled by the browser itself different browsers will do this type of thing in different ways, so my best advice would be to try an alternative browser.

Firefox's Midas API produces much cleaner code than IE 6 and doesn't tend to re-write your HTML.

Hopefully with IE 7 Microsoft will improve the code it's RTE produces.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Marcvanu
Date Posted: 04 September 2006 at 2:07pm
Unfortunately it does not work properly with Firefox either and Opera is not Rich Text Enabled.
How can we fix this problem then ?


-------------
Mvu
Brussels


Posted By: WebWiz-Bruce
Date Posted: 04 September 2006 at 2:19pm
It shouldn't be a problem, here is a link to this page with & in it that I have posted in Firefox:-

http://forums.webwiz.net/forum_posts.asp?TID=21212&PID=113594#113594 - http://forums.webwiz.net/forum_posts.asp?TID=21212&PID=113594#113594


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: WebWiz-Bruce
Date Posted: 04 September 2006 at 2:20pm
As you can see the & sound stays intact it also works in IE. The RTE in this forum uses the same one as the standalone RTE.

Also, a new version is being tested at present that will work with Opera as Opera 9 is now RTE enabled.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Marcvanu
Date Posted: 04 September 2006 at 3:06pm
Actually with IE your example seems to work because the part after http://forums.webwiz.net/forum_posts.asp?TID=21212 - http://forums.webwiz.net/forum_posts.asp?TID=21212 is not relevant. The &PID=113597#113597 is relevant to position directly the browser to the message.
 
 


-------------
Mvu
Brussels


Posted By: WebWiz-Bruce
Date Posted: 04 September 2006 at 3:14pm
Yes but the point that I am making is that & can be used within URL's and is not changed to &

Here is another one that does need all the parts in the URL to work, including those after the & signs:-

http://forums.webwiz.net/calendar_week.asp?M=9&Y=2006&W=2 - http://forums.webwiz.net/calendar_week.asp?M=9&Y=2006&W=2


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Marcvanu
Date Posted: 04 September 2006 at 4:21pm
Ok, I understand. But me, I am talking about the HTML code. If you toggle to HTML code, then you can see that & is changed into & That is the problem because the hyperlink does not work properly since at least one variable is missing.

-------------
Mvu
Brussels


Posted By: WebWiz-Bruce
Date Posted: 04 September 2006 at 8:44pm
Toggling back and forth between HTML and RTE view is not a good thing as the command sent to the browser to do this does tend to make the browser re-write the HTML code in all browsers.

The problem is you are limited to what the browser can do and trying to work around the limitations, bugs, and quirks all browsers seem to have with their RTE's.

RTE features of web browsers seem to be all rather buggy at the moment, with Safaris effort on the MAC being so bad it is almost unusable so support for Safari will be sometime off unless they improve things in new versions soon.

If you want links with & to stay intact I would suggest until browser RTE support improves that you stay away from using the HTML Toggle Button.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Marcvanu
Date Posted: 05 September 2006 at 7:56am
Unhappy It does noet work either. We are in a "cul de sac" I am afraid !

-------------
Mvu
Brussels


Posted By: WebWiz-Bruce
Date Posted: 05 September 2006 at 9:34am
It could be something to do with the page encoding that you have set the page to, or the page encoding for your browser that is coursing the & in a link to be HTML encoded as &

Try changing the page encoding of the page and see if that solves the problem.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Marcvanu
Date Posted: 05 September 2006 at 10:28am
Smile OK, I solved the problem by adding this code in my asp  
newString     = replace(newString,"amp","")


-------------
Mvu
Brussels


Posted By: WebWiz-Bruce
Date Posted: 05 September 2006 at 11:27am
Don't forget the ; and &

The following should work better otherwise words like 'amplifier' can not be used:-

newString = replace(newString, "&", "&")


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting


Posted By: Marcvanu
Date Posted: 05 September 2006 at 11:43am

Right, I thought about this.



-------------
Mvu
Brussels



Print Page | Close Window

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