Hi Atli,
Thank you for the advise. I tried replacing the nl2br() with htmlspecialchar s_decode() and it worked perfectly!
I will try to search for the htmlentities and htmlspecialchar s codes.
Thanks again...
User Profile
Collapse
-
HTML coded text from database do not display properly
I just added a WYSIWYG editor on my website so my users can format their content any way they want. The editor works fine and is successfully saving the html coded content on the database.
The problem is when I try to view the content, here's what it shows on the webpage:
<span style="font-family: Impact;">This is just a test ad only.</span><br><span style="text-decoration: line-through;">This...
No activity results to display
Show More
Leave a comment: