def html_format(data, out='nested', opts=None, **kwargs):
    '''
    Return the formatted string as HTML.

    data
        The JSON serializable object.

    out: ``nested``
        The name of the output to use to transform the data. Default: ``nested``.

    opts
        Dictionary of configuration options. Default: ``__opts__``.

    kwargs
        Arguments to sent to the outputter module.

    CLI Example:

    .. code-block:: bash

        salt '*' out.html_format "{'key': 'value'}" out=yaml
    '''
    if not opts:
        opts = __opts__
    return salt.output.html_format(data, out, opts=opts, **kwargs)