' + $('
').text(seg).html() + '
';
+ });
+
+ return html;
+ }
+
$('.rx-field').on('input', function() {
refreshCounters();
updateScanBanner();
@@ -3364,7 +3408,7 @@
if ((data.content_description || '').toString().trim() !== '') {
var report = (data.content_description || '').toString();
- $item.find('.js-history-report').text(report);
+ $item.find('.js-history-report').html(formatAiReportHtml(report));
$item.find('.btn-use-history-report').data('report', report);
}
diff --git a/app/Views/billing/opd_scan_history_panel.php b/app/Views/billing/opd_scan_history_panel.php
index 4ecd1fe..31dd3c3 100644
--- a/app/Views/billing/opd_scan_history_panel.php
+++ b/app/Views/billing/opd_scan_history_panel.php
@@ -40,7 +40,7 @@
⚠ = esc((string) ($scan['ai_alert_text'] ?? '')) ?>
-
+
= esc((string) ($scan['report_text'] ?? '')) ?>