<commit_before><div class="item-search text-muted pull-right">
	<div class='input-wrapper'>
		<input type="text" class="item-search-input form-control"
			placeholder="{{ _("Search") }}" autocomplete="off">
		<i class="octicon octicon-search pull-right" style='cursor: pointer;'></i>
	</div>
</div>
<div class="clearfix pull-right" style="width:100%;">
	<h5 class="item-search-results" style="margin-right: 30px;"></h5>
	<p class="pull-right" style="margin-top: -28px;">
        <a style="display: none;" href="javascript:history.back();" class="octicon octicon-x text-extra-muted clear" title="{{ _("Clear Search") }}" ></a>
	</p>
</div>

<script>
frappe.ready(function() {
	if(frappe.utils.get_url_arg("search")) {
		$(".item-search-results").html('{{ _("Search results for") + ": " + html2text(frappe.form_dict.search or "")|trim }}');
		$(".item-search").toggle(false);<commit_msg>fix(search): Fix possible reflected XSS attack vector (#6860)<commit_after><div class="item-search text-muted pull-right">
	<div class='input-wrapper'>
		<input type="text" class="item-search-input form-control"
			placeholder="{{ _("Search") }}" autocomplete="off">
		<i class="octicon octicon-search pull-right" style='cursor: pointer;'></i>
	</div>
</div>
<div class="clearfix pull-right" style="width:100%;">
	<h5 class="item-search-results" style="margin-right: 30px;"></h5>
	<p class="pull-right" style="margin-top: -28px;">
        <a style="display: none;" href="javascript:history.back();" class="octicon octicon-x text-extra-muted clear" title="{{ _("Clear Search") }}" ></a>
	</p>
</div>

<script>
frappe.ready(function() {
	if(frappe.utils.get_url_arg("search")) {
		$(".item-search-results").html('{{ _("Search results for") + ": " + html2text(frappe.form_dict.search or "") | e | trim }}');
		$(".item-search").toggle(false);
{'fraction_non_alphanumeric': 0.22971491228070176, 'fraction_numerical': 0.013157894736842105, 'mean_word_length': 5.660583941605839, 'pattern_counts': {'":': 2, '<': 35, '<?xml version=': 0, '>': 35, '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': '7137849', 'n_tokens_mistral': 660, 'n_tokens_neox': 635, 'n_words': 123}