function attr_class(value, hash, directives) {
	var result = to_class(value, hash, directives);
	return result ? ` class="${escape_html(result, true)}"` : '';
}
@param {any} value
@param {string | undefined} [hash]
@param {Record<string, boolean>} [directives]