Show More Button with Rich Text

I have inserted the code for a show more-less button on a dynamic page with the text box linked to a rich text field in a dataset. We need to use rich text because we require formatting such as paragraphs (the text field will only allow text with no formatting at all). However, the button code returns all characters, even formatting code. Is there a way to fix this? I am assuming there is a character request that distinguishes between characters returned such that we get actual text, without formatting characters.