I am trying to display short description without any markup in read-more section. I want to display small portion of content.
Content Looks like:
This is my car. This may be a
funnycontent. This is a demo text. This is a demo text.This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text. This is a demo text.
Readmore Looks Like:
This is my car. This may be a funny content.
My question is how to remove the effect of html and display a normal string.
strip_tags()function php.net/manual/en/function.strip-tags.php - this preserves the original text (just removes the formatting) though.strip_tags()to the "read more" portion of it, not the entire string. Although if you want to remove the style of the HTML attributes, put it all into a div which you style in a way that it becomes normal text inside it.