Archive Description removes line breaks

Description:

I want to use the WordPress term description. When I type in a text with multiple paragraphs, the paragraphs will get lost on the frontend.

Step-by-step reproduction instructions:

Please write the steps needed to reproduce the bug.

  1. Go to the categories and add a description with multiple paragraphs to a term of you choice
  2. Create a template for the archive
  3. Use the Cwicly Paragraph and dynamic data to display the description
  4. On the frontend you see that the line break was removed

Screenshots, screen recording, code snippet

Here is a short screencast:

Environment info

  • WordPress version: latest
  • Gutenberg Plugin version: -
  • Cwicly Plugin version: latest
  • Cwicly Theme version: latest

Hello @Jonas,

Thanks for the report.
If Iā€™m not mistaken, the default WordPress description field does not support HTML tags and this is an added behaviour.

We do escape them when rendering the archive description, so this might be something we can remove.

Cheers,

Thanks @Louis! Would be awesome if the HTML-Editor would be usable.

Hi @Louis,

I noticed this item in the 1.2.9.5.8.1 changelog:

It appears to be related this bug, please confirm whether that was the fix or if it is something different.

Thanks.

You are correct. This bug is fixed as well :slight_smile:

1 Like

Hello @StrangeTech,

Thanks for bringing this up.
Yes, archive description should now support HTML tags.

Thanks for confirming, @Jonas!

1 Like