def _html_param_builder(params):
    """
    Build a HTML params string out of a dictionary of the option names and their values. If a list is the value
    (it is intended in a select case) the original list is returned instead of a string

    :param dict params:
    :return str | list: the composed parameters string or list in case list is the class of the value in the dict
    """
    string = ""
    for key, value in params.items():
        if isinstance(value, list):
            return value
        string = string + key + "=" + str(value) + " "
    return string.strip()