Format a result for display.
Usage
format_output( result, fmt="text", )
result: Result
The result to format.
fmt: str = "text"
Output format (text, json, html).
str
Formatted output.