Ssescape

From SmartWiki
Jump to: navigation, search

This syntax functions to "escape" double quotes on text fields. The purpose of this is to avoid breaking the code on the page when field values containing double quotes are referenced on Template Formulas, Visibility Conditions and Browser Scripts.

IMPORTANT: This syntax will escape/ignore double quotes (") and remove html tags.

<ssEscape>.....</ssEscape>

Examples

@level1.name@="<ssEscape>@level1.Proposal Title@</ssEscape>";
@level1.description@="<ssEscape>@level1.Project Description.value@</ssEscape>";
var name="<ssEscape>@name@</ssEscape>";
if(name=="")
  function goes here....
<!--@sslogic("<ssEscape>@name@</ssEscape>"!="")-->
   There's a project title with double quotes
<!--@end-->

See Also