Expanded text loses its formatting

Hello,

I have a text box that expands with show more/show less. It works fine but the text in the text box has lost all its formatting. I have bullet points, italics and indentation (not all on the same sentence) and it all shows as normal text. Is there anything I can do? The link for the page is https://www.radarpsy.org/donnees-probantes-recension-des-ecr .

About 40% down the page, you will see just below “Premier exemple” the sentence “Alors qu’il est dit dans le corps du rapport:”. This sentence should have a bullet point. And the paragraph just below that should be indented and in italics. There are other similar problems elsewhere in the text but this is representative.

Thank you for any help! :slight_smile:

Hello Wix Team,

anybody has any input on this problem?

Thank you!

When you use the code in the Wix example, you are creating a text substring that isn’t capable of storing any formatting data. To get the same effect with formatting, you’ll need to use html.

@skmedia That explains it! This is beyond my very limited abilities, bu at least I know to stop trying! Thank you very much!

@info49 Ive actually found my own solution that doesnt require any html to keep the formatting, and uses significantly less code. I commented my solution on a separate thread:
https://www.wix.com/corvid/forum/main/comment/5fc5747545cdb100aff49f9b

Hope this helps!