           <h4 class="font-semibold mb-2">Raw XML Input:</h4>
              <pre class="text-xs overflow-x-auto p-2 bg-white border">{{ submission.annotated_text.as_ref().unwrap() }}</pre>
            </div>

            <!-- Corrected Text -->
            {% if submission.corrected_text.is_some() %}
              <div class="p-3 bg-purple-50 rounded border">
                <h4 class="font-semibold mb-2">Final Corrected Text:</h4>
                <div class="whitespace-pre-line p-2 bg-white border">
      