Fixed: Article history HTML double-escaped in note field #91

Open
opened 2026-05-29 05:30:27 +00:00 by jmiller · 1 comment
Owner

Fixed in commit 8dd6fdd

Severity: Medium

What was wrong:
History HTML was put into an XML description attribute via htmlspecialchars(), but Joomla's note field renders description as HTML, causing double-escaping (visible HTML tags instead of rendered HTML).

Fix applied:
Load note field with empty description first, then inject history HTML via $form->setFieldAttribute() which bypasses XML attribute encoding.

Files: MokoJoomCrossContent.php

Label: priority: medium, status: pending-testing

## Fixed in commit 8dd6fdd **Severity:** Medium **What was wrong:** History HTML was put into an XML description attribute via `htmlspecialchars()`, but Joomla's note field renders description as HTML, causing double-escaping (visible HTML tags instead of rendered HTML). **Fix applied:** Load note field with empty description first, then inject history HTML via `$form->setFieldAttribute()` which bypasses XML attribute encoding. **Files:** `MokoJoomCrossContent.php` **Label:** `priority: medium`, `status: pending-testing`
Author
Owner

Branch created: feature/91-fixed-article-history-html-double-escape

git fetch origin
git checkout feature/91-fixed-article-history-html-double-escape
Branch created: [`feature/91-fixed-article-history-html-double-escape`](https://git.mokoconsulting.tech/MokoConsulting/MokoJoomCross/src/branch/feature/91-fixed-article-history-html-double-escape) ```bash git fetch origin git checkout feature/91-fixed-article-history-html-double-escape ```
Sign in to join this conversation.
Type Bug
Status
Priority
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: MokoConsulting/MokoJoomCross#91