Ampersands in quoted strings
|
||||||||||||||||||||
|
There is a side-effect of having the ability to refer to variables inside quoted strings. In earlier versions of pop!siteTM, you had to use a full expression to get a variable's value inside a string, like this:
We made it easier to do this by allowing:
This means that pop!site looks for variables inside quoted strings (like most attribute values). The unfortunate side-effect is that you can no longer use the ampersand character '&' directly in quoted strings. Supposing you really want an ampersand in the generated HTML. The workaround is to do this:
and then:
This will cause an ampersand to be placed into the final HTML, and the result will be:
|
|||||||||||||||||||
|
||||||||||||||||||||
|
Copyright 1995-1997. Pragmatica, Inc. All Rights reserved. Pragmatica, pop!site and pop!talk are trademarks of Pragmatica, Inc. Modified: 10 March, 1997 18:24:56
Page Feedback
|