Topic: Displaying cr/lf using added-text class
mshallop pro asked 7 years ago
Morning!
am wondering how to display crlf within text under the added-text (social) class?
if I don't strip-out the "rn" characters, text will display fine as long as I encapsulate the text within pre tags. However, if the user doesn't put line-breaks in their text, then the rendered output is displayed as one continuous line whereas I am looking for more of a paragraph/block of text to be displayed within the parent div of "news", "excerpt".
If I strip-out the "rn" tags and replace with <br>, then the breaks aren't rendered instead, displaying the literal text of the tag. Users that don't use crlf in their posts will have the text displayed as a paragraph/block (correctly)
Thanks!
--mike
Add comment
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Status
Specification of the issue
- ForumUser: Pro
- Premium support: No
- Technology: General Bootstrap questions
- MDB Version: -
- Device: -
- Browser: -
- OS: -
- Provided sample code: No
- Provided link: No
Tags