BASE . LOG, 'log_file_id' => $LOG_FILE_ID, 'log_per_date' => true, ]); // define a list of from to color sets for conversion test $PAGE_NAME = 'TEST CLASS: HTML BUILD: REPLACE'; print ""; print "" . $PAGE_NAME . ""; print ""; print '
Class Test Master
'; print '

' . $PAGE_NAME . '

'; $html_block = << {CONTENT} HTML; print "
" . htmlentities(Replace::replaceData(
	$html_block,
	[
		'ID', 'CSS', '{CONTENT}'
	],
	[
		'block-id', join(',', ['blue', 'red']),
		'Some content here
with bla bla inside' ] )) . "
"; Replace::loadElements( ['foo', $html_block], ['bar', <<{CONTENT} HTML] ); print "Get:
" . htmlentities(Replace::getElement('bar') ?: '') . '
'; print "Build element:
" . htmlentities(Replace::buildElement(
	'bar',
	['ID}', '{CONTENT'],
	['new-id', 'Test cow 日本語']
)) . '
' ; print "Build element as replace:
" . htmlentities(Replace::buildElement(
	'bar',
	['ID}', '{CONTENT'],
	['diff-id', 'Test cow 日本語. More text plus'],
	'rpl-1'
)) . '
' ; print "Get replacement:
" . htmlentities(Replace::getReplaceBlock('rpl-1')) . "
"; print ""; // __END__