String.serializeAttributes >= 0.1.2

Purpose

Serialize the given parameter to valid HTML attributes

Syntax

String.serializeAttributes ( Object );

Parameters

Return values

String

Examples

var obj = {
	a : 1,
	b : 2
};

output = String.serializeAttributes(obj);>>> 'a="1" b="2"'