bolt / core

🧿 Bolt 5 core
https://boltcms.io
MIT License
550 stars 161 forks source link

Prefix and postfix html value not display #3489

Open napley opened 1 year ago

napley commented 1 year ago

Prefix and postfix html value not display if the content start with HTML tag

Details

Question Answer
Relevant Bolt Version 5.1.24
Install type Composer install
PHP version 8.1
Web server Apache / Nginx
For UX/UI issues Chrome

Reproduction

Bug summary

I have upgrade my bolt project from 4.2.5 to 5.1.24 and I got a behaviour which does not exist before. I have tested with a fresh install and I get the same behaviour.

With this value, the prefix or postfix are not display :

prefix: |
                <p>A text-only version of the content, that can be used to "tease"
                the content when it's used in listing pages or search results.</p>

With a line break or any character, this value, the prefix or postfix are display :

postfix: |

                <p>A text-only version of the content, that can be used to "tease"
                the content when it's used in listing pages or search results.</p>