Functions with sanitized parameters
The complete source of functions_sanitized.ek9, compiled by the EK9 compiler. Shown on functions.html.
#!ek9 defines module site.functions.sanitized defines function executeQuery() as pure -> sql as sanitized String <- result as String: `Executing: ${sql}` //The SQL is automatically sanitized before this function receives it renderHtml() as pure -> userContent as sanitized String <- html as String: `<p>${userContent}</p>` //XSS attacks are prevented by automatic sanitization