fix: add | safe filter for WYSIWYG HTML fields in company_detail.html
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Some checks are pending
NordaBiz Tests / Unit & Integration Tests (push) Waiting to run
NordaBiz Tests / E2E Tests (Playwright) (push) Blocked by required conditions
NordaBiz Tests / Smoke Tests (Production) (push) Blocked by required conditions
NordaBiz Tests / Send Failure Notification (push) Blocked by required conditions
Quill.js outputs HTML with <p> tags. Without | safe filter, Jinja2 escapes the tags and they display as literal text. Backend sanitize_html() already strips unsafe tags via bleach. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
dca692c304
commit
a7fc13ce9d
@ -1177,7 +1177,7 @@
|
||||
</svg>
|
||||
</div>
|
||||
<div style="flex: 1; line-height: 1.8; color: var(--text-secondary);">
|
||||
{{ about_description }}
|
||||
{{ about_description | safe }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1190,7 +1190,7 @@
|
||||
</div>
|
||||
<div style="flex: 1;">
|
||||
<h3 style="font-size: var(--font-size-base); font-weight: 600; color: var(--text-primary); margin: 0 0 var(--spacing-sm);">Historia i doświadczenie</h3>
|
||||
<div style="line-height: 1.8; color: var(--text-secondary);">{{ company.founding_history }}</div>
|
||||
<div style="line-height: 1.8; color: var(--text-secondary);">{{ company.founding_history | safe }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1204,7 +1204,7 @@
|
||||
</div>
|
||||
<div style="flex: 1;">
|
||||
<h3 style="font-size: var(--font-size-base); font-weight: 600; color: var(--text-primary); margin: 0 0 var(--spacing-sm);">Wartości i misja</h3>
|
||||
<div style="line-height: 1.8; color: var(--text-secondary);">{{ company.core_values }}</div>
|
||||
<div style="line-height: 1.8; color: var(--text-secondary);">{{ company.core_values | safe }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -1231,7 +1231,7 @@
|
||||
<div style="width: 32px; height: 32px; border-radius: 8px; background: #2E4872; display: flex; align-items: center; justify-content: center; flex-shrink: 0;">
|
||||
<svg width="16" height="16" fill="white" viewBox="0 0 24 24"><path d="M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z" fill="none" stroke="white" stroke-width="2"/></svg>
|
||||
</div>
|
||||
<div style="flex: 1; line-height: 1.8; color: var(--text-secondary);">{{ company.services_offered }}</div>
|
||||
<div style="flex: 1; line-height: 1.8; color: var(--text-secondary);">{{ company.services_offered | safe }}</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user