Jump to content

Entities and plain text in posts


eevan79

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/206073-entities-and-plain-text-in-posts/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.