<commit_before>{if !$flexibleCategoryList|isset}{assign var=flexibleCategoryList value=$categoryList}{/if}
{if !$flexibleCategoryListName|isset}{assign var=flexibleCategoryListName value='categoryIDs'}{/if}
{if !$flexibleCategoryListID|isset}{assign var=flexibleCategoryListID value='flexibleCategoryList'}{/if}
{if !$flexibleCategoryListSelectedIDs|isset}{assign var=flexibleCategoryListSelectedIDs value=$categoryIDs}{/if}
<ol class="flexibleCategoryList" id="{$flexibleCategoryListID}">
	{foreach from=$flexibleCategoryList item=categoryItem}
		<li>
			<div class="containerHeadline">
				<h3><label{if $categoryItem->getDescription()} class="jsTooltip" title="{$categoryItem->getDescription()}"{/if}><input type="checkbox" name="{$flexibleCategoryListName}[]" value="{@$categoryItem->categoryID}" class="jsCategory"{if $categoryItem->categoryID|in_array:$flexibleCategoryListSelectedIDs} checked{/if}> {$categoryItem->getTitle()}</label></h3>
			</div>
			
			{if $categoryItem->hasChildren()}
				<ol>
					{foreach from=$categoryItem item=subCategoryItem}
						<li>
							<label{if $subCategoryItem->getDescription()} class="jsTooltip" title="{$subCategoryItem->getDescription()}"{/if} style="font-size: 1rem;"><input type="checkbox" name="{$flexibleCategoryListName}[]" value="{@$subCategoryItem->categoryID}" class="jsChildCategory"{if $subCategoryItem->categoryID|in_array:$flexibleCategoryListSelectedIDs} checked{/if}> {$subCategoryItem->getTitle()}</label>
							
							{if $subCategoryItem->hasChildren()}
								<ol>
									{foreach from=$subCategoryItem item=subSubCategoryItem}
										<li>
											<label{if $subSubCategoryItem->getDescription()} class="jsTooltip" title="{$subSubCategoryItem->getDescription()}"{/if}><input type="checkbox" name="{$flexibleCategoryListName}[]" value="{@$subSubCategoryItem->categoryID}" class="jsSubChildCategory"{if $subSubCategoryItem->categoryID|in_array:$flexibleCategoryListSelectedIDs} checked{/if}> {$subSubCategoryItem->getTitle()}</label>
										</li>
									{/foreach}
								</ol>
							{/if}
						</li>
					{/foreach}
				</ol>
			{/if}
		</li>
	{/foreach}
</ol>
<script data-relocate="true">
	$(function() {
		new WCF.Category.FlexibleCategoryList('{$flexibleCategoryListID}');
	});
</script><commit_msg>HTML in category descriptions was not considered correctly<commit_after>{if !$flexibleCategoryList|isset}{assign var=flexibleCategoryList value=$categoryList}{/if}
{if !$flexibleCategoryListName|isset}{assign var=flexibleCategoryListName value='categoryIDs'}{/if}
{if !$flexibleCategoryListID|isset}{assign var=flexibleCategoryListID value='flexibleCategoryList'}{/if}
{if !$flexibleCategoryListSelectedIDs|isset}{assign var=flexibleCategoryListSelectedIDs value=$categoryIDs}{/if}
<ol class="flexibleCategoryList" id="{$flexibleCategoryListID}">
	{foreach from=$flexibleCategoryList item=categoryItem}
		<li>
			<div class="containerHeadline">
				<h3><label{if $categoryItem->getDescription()} class="jsTooltip" title="{if $categoryItem->descriptionUseHtml}{$categoryItem->getDescription()|strip_tags}{else}{$categoryItem->getDescription()}{/if}"{/if}><input type="checkbox" name="{$flexibleCategoryListName}[]" value="{@$categoryItem->categoryID}" class="jsCategory"{if $categoryItem->categoryID|in_array:$flexibleCategoryListSelectedIDs} checked{/if}> {$categoryItem->getTitle()}</label></h3>
			</div>
			
			{if $categoryItem->hasChildren()}
				<ol>
					{foreach from=$categoryItem item=subCategoryItem}
						<li>
							<label{if $subCategoryItem->getDescription()} class="jsTooltip" title="{if $subCategoryItem->descriptionUseHtml}{$subCategoryItem->getDescription()|strip_tags}{else}{$subCategoryItem->getDescription()}{/if}"{/if} style="font-size: 1rem;"><input type="checkbox" name="{$flexibleCategoryListName}[]" value="{@$subCategoryItem->categoryID}" class="jsChildCategory"{if $subCategoryItem->categoryID|in_array:$flexibleCategoryListSelectedIDs} checked{/if}> {$subCategoryItem->getTitle()}</label>
							
							{if $subCategoryItem->hasChildren()}
								<ol>
									{foreach from=$subCategoryItem item=subSubCategoryItem}
										<li>
											<label{if $subSubCategoryItem->getDescription()} class="jsTooltip" title="{if $subSubCategoryItem->descriptionUseHtml}{$subSubCategoryItem->getDescription()|strip_tags}{else}{$subSubCategoryItem->getDescription()}{/if}"{/if}><input type="checkbox" name="{$flexibleCategoryListName}[]" value="{@$subSubCategoryItem->categoryID}" class="jsSubChildCategory"{if $subSubCategoryItem->categoryID|in_array:$flexibleCategoryListSelectedIDs} checked{/if}> {$subSubCategoryItem->getTitle()}</label>
										</li>
									{/foreach}
								</ol>
							{/if}
						</li>
					{/foreach}
				</ol>
			{/if}
		</li>
	{/foreach}
</ol>
<script data-relocate="true">
	$(function() {
		new WCF.Category.FlexibleCategoryList('{$flexibleCategoryListID}');
	});
</script>
{'fraction_non_alphanumeric': 0.17317073170731706, 'fraction_numerical': 0.0012195121951219512, 'mean_word_length': 7.067213114754098, 'pattern_counts': {'":': 0, '<': 57, '<?xml version=': 0, '>': 97, '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': '2974155', 'n_tokens_mistral': 1738, 'n_tokens_neox': 1484, 'n_words': 193}