User Profile

Collapse

Profile Sidebar

Collapse
pgm16
pgm16
Last Activity: Apr 10 '10, 09:20 PM
Joined: Apr 5 '10
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • 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...
    See more | Go to post

    Leave a comment:


  • pgm16
    started a topic HTML coded text from database do not display properly
    in PHP

    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&nbsp; just a test ad only.</span><br><span style="text-decoration: line-through;">This...
    See more | Go to post
No activity results to display
Show More
Working...