0

I just added WYSIWYG editor to my blog so I can easily post articles with text formatting. However, since I also got a box with recent posts, it automatically adds the text format (text bold, white lines etc) to those headlines. One headline contains the Title, abit of a content and the amount of reactions. Like:

BLOGTITLE Abit of the article content 2 likes

Is there a way I could just show the content without the text formatting? I tried str_replace but that aint working for me. I also tried the striplashes. Doesnt work.

I dont think you need a piece of code since I'm simply echo'ing the message in the database.

1 Answers1

1

It sounds like you need strip_tags

Ingmar Boddington
  • 3,440
  • 19
  • 38