 											variables.result &= '<i class="#application.Bootstrap.IconLibrary[attributes.library]##encodeForHTMLAttribute(attributes.icon)#"></i> ';
 											}
 	
-	if(!attributes.isSafeHTML)					variables.result &= getSafeHTML(thisTag.GeneratedContent.trim(), attributes.profile, attributes.throwOnError); // pass through of content
-	if( attributes.isSafeHTML)					variables.result &= thisTag.GeneratedContent.trim(); // warning content must already be clean								
+											variables.result &= application.generateContent(thisTag.GeneratedContent, variables.tagstack, attributes);								
 
 
 	

	if (attributes?.dropdown != "")   				variables.result &= ' datatoggle ';
	
											variables.result &= '" '; // end class
	if (attributes?.disabled == true)				variables.result &= 'disabled="disabled" ';
											

	if (attributes?.href	!= "")				variables.result &= ' href="#attributes.href#"';
	if (attributes?.id		!= "")				variables.result &= ' id="#encodeForHTMLAttribute(attributes.id)#"';

	for(variables.myAttr in variables.arAttrSeries)	variables.result &= ' #lcase(variables.myAttr.key)#="#encodeForHTMLAttribute(variables.myAttr.value)#"';


	if (attributes?.rel		!= "")				variables.result &= ' rel = "#encodeForHTMLAttribute(attributes.rel)#"';
	if (attributes?.role	!= "")				variables.result &= ' role = "#encodeForHTMLAttribute(attributes.role)#"';
	if (attributes?.target	!= "")				variables.result &= ' target = "#encodeForHTMLAttribute(attributes.target)#"';
	if (attributes?.tooltip  != "")				variables.result &= ' title = "#encodeForHTMLAttribute(attributes.tooltip)#"';
	if (attributes?.style    != "")				variables.result &= ' style = "#encodeForHTMLAttribute(attributes.style)#"';

	if (attributes?.dropdown == true)				variables.result &= ' data-toggle="dropdown"';
											variables.result &= '>';
	if (attributes?.bold 	== true)				variables.result &= '<b>';

	
	if (attributes?.value	!= "")										thisTag.generatedContent = attributes.value;	
	if (attributes?.binding	!= "" && isDefined("caller.rc.#attributes.binding#")) 	thisTag.generatedContent = evaluate("caller.rc.#attributes.binding#");
	
	if (attributes?.tooltipKey != "")										attributes.tooltip 		= application.geti18n(attributes.key, attributes?.tooltipPlaceholder);


	if (attributes.look 	== 'link')			variables.result &= '<a class="';				// we don't apply btn so that link look like links
	if (attributes.look 	!= 'link')			variables.result &= '<a class="btn btn-#encodeForHTMLAttribute(attributes.look.lcase())#';
