HTML found inside CityScript
Symptom: when you publish your site, you receive the error message “HTML found inside CityScript”
Cause: CityScript code (that is, code between {$ and $}) contains some HTML formatting tags which do not belong there. For example, suppose you had the following CityScript code:
{$ .headline $}
If you are in Normal View, and you select the word .headline and make it Italic, it will show up like this:
{$ .headline $}
Although this looks OK in CityScript mode, the underlying HTML will actually contain:
{$ <EM>.headline</EM> $}
This is not OK because the CityScript parser doesn't know what to make of the <EM> which is not valid CityScript.
The solution for this is to edit the code in HTML View to move all HTML tags outside the CityScript blocks, for example:
<EM>{$ .headline $}</EM>
CityDesk Home
Fog Creek Home
Email Us