<commit_before># HTML Helper Class

## Decorate

Decorate method allow developer to define HTML attributes collection as well as specifying the default.

	$finalize = Orchestra\Support\HTML::decorate(array('class' => 'foo'), array('id' => 'foo', 'class' => 'span5'));

	var_dump($finalize); // return array('class' => 'foo span5', 'id' => 'foo');<commit_msg>Add documentation on Orchestra\Support\HTML::create()<commit_after># HTML Helper Class

## Create HTML Tag

Create a HTML tag from within your libraries/extension using following code:

	{{ Orchestra\Support\HTML::create('p', 'Some awesome information') }}

Customize the HTML attibutes by adding third parameter.

	{{ Orchestra\Support\HTML::create('p', 'Another awesomeness', array('id' => 'foo')) }}

## Decorate HTML

Decorate method allow developer to define HTML attributes collection as `HTML::attributes` method, with the addition of including default attributes array as second parameter.

	$attributes = Orchestra\Support\HTML::decorate(
		array('class' => 'foo'), 
		array('id' => 'foo', 'class' => 'span5')
	);

	var_dump($attributes); // return array('class' => 'foo span5', 'id' => 'foo');
	
It also support replacement of default attributes if such requirement is needed.

	$attributes = Orchestra\Support\HTML::decorate(
		array('class' => 'foo !span5'),
		array('class' => 'bar span5'),
	);
	
	var_dump($attributes); // return array('class' => 'foo bar');
{'fraction_non_alphanumeric': 0.15594405594405594, 'fraction_numerical': 0.004195804195804196, 'mean_word_length': 5.36, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 17, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1266431', 'n_tokens_mistral': 419, 'n_tokens_neox': 397, 'n_words': 136}