One feature of my web admin is a wysiwyg editor that allows users to edit information.
There is also a view-only template. Users can preview the information before making any edits.
Currently, the view template displays the saved field value as one continuous line:
<p><b>Hello</b></p><p>there</p>
What are my options to improve readability for users in "view" mode?
Some possible solutions include:
Keep it as is, but this may lead to long lines of text.
Avoid encoding issues by replacing
</p>
or<br>
with actual<br>
tags to break up the lines.Display the content as HTML, allowing for bold text and other formatting. However, this could cause issues with unclosed tags.
If using any of the above options, consider placing the content in a scrollable div.
(I had trouble tagging this question. Feel free to retag).