[Overview][Constants][Procedures and functions] | Reference for unit 'pwumain' (#powtils_main) |
Source position: pwumain.pas line 133
procedure OutF( |
const s: String |
); |
OutF stands for 'Output Formatted', It is similar to the TemplateOut (WebTemplateOut) function but instead of using a template file, the string you send as the parameter acts as the template.
Use OutFF if you want malicious less than and greater than signs filtered into html entities (instead of trimmed). Double F stands for 'Formatted and Filtered' with secure filtering instead of trimming, whereas single F stands for Formatted (with automatic trimming of malicious characters).
var somemacro: string; begin somemacro:= 'blue'; SetVar('color', somemacro); OutF('He looked at the sky, it was {$color}'); OutF('That shade of $color is nice.'); end.