Milonic provide full featured pull down web menus for some of the worlds largest companies
click here to see what it can do for you

Download Milonic DHTML Menu
Buy Milonic DHTML Menu

Back To Start Of Archive
Taken From The Forum: Help & Support for DHTML Menu Version 5+
Forum Topic: Click to view post
Last Updated: Saturday July 14 2012 - 06:07:11

Tip - Using Backquotes when having html in text


Poster: keyur
Dated: Sunday April 19 2009 - 21:12:11 BST

Hello,

I was having trouble entering   in my text, (with an html link containing an = sign inside the text), and found this old tip from Andy that came in handy.

Code:
aI("text=`<p>&nbsp;&nbsp;<a href='/index.html'>Hello</a>`;type=form;");


----
The system is smart enough to know that something like &nbsp; is a non-breaking space and so add this as a character without breaking the text string.

However, there are times when this may fail usually because you have included an equals sign as well as a semi colon. In this instance you would need to use back quotes, like this.

Code:
    aI("text=`Here&nbsp; is an equal sign &quot;=&quot;`;url=#");


Note the use of "Back Quotes" rather than a normal quote mark.

Hope this helps