… which does not get html-filtered. E.g. we normally do something like:

template show( htmlcode : String ){
  rawoutput( htmlcode )
}

This would become:

template show( htmlcode : HTML ){
  output( htmlcode )
}

And offer smart filtering for free:

var getsFiltered : String := getMessage();
var notFilteredText : HTML := getCode(); //getCode might return any String compatible type

var code : HTML := "<em>System error:</em><p>" + getsFiltered "</p> <em>Code:</em><p>" + notFilteredText + "</p>";

show( code )
Submitted by Elmer van Chastelet on 21 February 2014 at 11:08

Log in to post comments