HTML album description not returned by pwg.categories.getList #2084

Closed
opened 2026-10-05 01:05:54 +02:00 by adam · 3 comments
Owner

Here is a test example of HTML album description:
Image

The album is presented properly on a web browser:

Image

But the description (comment value) is not provided as it should when $conf['allow_html_descriptions'] = true as shown below:

Image

The API method pwg.categories.getList returns the description as if $conf['allow_html_descriptions'] = false. In addition, as mentioned in #1949 , the non-HTML description is incorrect. So HTML album descriptions are always incorrect.

Here is a test example of HTML album description: <img width="807" height="362" alt="Image" src="https://github.com/user-attachments/assets/2c7328be-be72-43b8-bcac-ca8f16273410" /> The album is presented properly on a web browser: <img width="1224" height="329" alt="Image" src="https://github.com/user-attachments/assets/08dd9f10-4ca7-4d48-a0d8-ed3448c2bc72" /> But the description (`comment` value) is not provided as it should when `$conf['allow_html_descriptions'] = true` as shown below: <img width="1005" height="351" alt="Image" src="https://github.com/user-attachments/assets/75ed0a06-6850-489e-8fae-2b7e6331d6fa" /> The API method `pwg.categories.getList` returns the description as if `$conf['allow_html_descriptions'] = false`. In addition, as mentioned in #1949 , the non-HTML description is incorrect. So HTML album descriptions are always incorrect. <!-- github-sync-id:3307543735 -->
adam closed this issue 2026-10-05 01:05:54 +02:00
Author
Owner
https://github.com/Piwigo/Piwigo/issues/2402#issuecomment-3236248710 <!-- github-comment-id:3236254069 -->
Author
Owner

Why should albums be managed differently than images? As long as `$conf['allow_html_descriptions'] = trueˋ, the API method should return the raw text, whether it contains HTML or not.

Why should albums be managed differently than images? As long as `$conf['allow_html_descriptions'] = trueˋ, the API method should return the raw text, whether it contains HTML or not. <!-- github-comment-id:3236446251 -->
Author
Owner

I think it should be the same for all fields that can accept HTML

I think it should be the same for all fields that can accept HTML <!-- github-comment-id:3236680456 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/Piwigo#2084