1 year ago

remove unwanted text from database

Posted 1 year ago by mlazuardy

so i make a Create Article and use TinyMCE for Editing the text. TinyMCE will also store the html tag in our datatable, what's the problem? the problem is i want to insert the body of my Article into my meta description with str_limit also, but they also include the html tag because of TinyMCE (or maybe other RichTextEditor too),

The Question is, how to remove unwanted html tag in the meta descrition like 'p' 'h1' or any tag html that i dont want it?

Please sign in or create an account to participate in this conversation.