Interstellar


Printf Module

Namespace: Interstellar

Assembly: Interstellar.Core.dll

Functions and values

Function or value Description

executeJavascriptf browser format

Full Usage: executeJavascriptf browser format

Parameters:
    browser : IBrowser
    format : StringFormat<'b, unit>

Returns: 'b

Printf-style function that executes some Javascript code on a browser instance, sanitizing format parameters using javascriptf. It is safe to pass in untrusted format parameters from the outside world. Think SQL prepared statements.

browser : IBrowser
format : StringFormat<'b, unit>
Returns: 'b

javascriptf format

Full Usage: javascriptf format

Parameters:
    format : StringFormat<'T, string>

Returns: 'T

Like sprintf, but escapes the format parameters for Javascript to prevent code injection, allowing you to safely deal with untrusted format parameters. Think SQL prepared statements.

format : StringFormat<'T, string>
Returns: 'T

kjavascriptf continuation format

Full Usage: kjavascriptf continuation format

Parameters:
    continuation : string -> 'Result
    format : StringFormat<'T, 'Result>

Returns: 'T

Like ksprintf, but escapes the format parameters for Javascript to prevent code injection, allowing you to safely deal with untrusted format parameters. Think SQL prepared statements.

continuation : string -> 'Result
format : StringFormat<'T, 'Result>
Returns: 'T