eevan79 Posted June 28, 2010 Share Posted June 28, 2010 How to show posts from database as plain text and not HTML. For example: Read post as written: "<strong>Bold text</strong>" and not Bold text. I parsed BBCodes and smilies, but dont know how to display post as written. I also tried some parse script but that scripts just strips tags, or delete all text between html tags. So I probably need code and decode BBCode. When I edit post, I see <br> tags between the lines. Can someone guide me how to implement it in simple forum script? Are there any parser for this? Quote Link to comment https://forums.phpfreaks.com/topic/206073-entities-and-plain-text-in-posts/ Share on other sites More sharing options...
trq Posted June 28, 2010 Share Posted June 28, 2010 htmlentities. Quote Link to comment https://forums.phpfreaks.com/topic/206073-entities-and-plain-text-in-posts/#findComment-1078263 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.