Как извлечь только текст из строки HTML с помощью PHP?

Я хочу извлечь только текст из строки PHP.

Эта строка php содержит HTML-код, такой как теги и т. Д.

Поэтому мне нужен только простой текст из этой строки.

Это фактическая строка:

<div class="devblog-index-content battlelog-wordpress">
<p><strong>The celebration of the Recon class in our second </strong><a href="http://blogs.battlefield.com/2014/10/bf4-class-week-recon/" target="_blank">BF4 Class Week</a><strong> continues with a sneaky stroll down memory lane. Learn more about how the Recon has changed in appearance, name and weaponry over the years&hellip;</strong></p>

<p>&nbsp;</p>

<p style="text-align:center"><a href="http://eaassets-a.akamaihd.net/battlelog/prod/954660ddbe53df808c23a0ba948e7971/en_US/blog/wp-content/uploads/2014/10/bf4-history-of-recon-1.jpg?v=1412871863.37"><img alt="bf4-history-of-recon-1" class="aligncenter" src="http://eaassets-a.akamaihd.net/battlelog/prod/954660ddbe53df808c23a0ba948e7971/en_US/blog/wp-content/uploads/2014/10/bf4-history-of-recon-1.jpg?v=1412871863.37" style="width:619px" /></a></p>

Я хочу показать это из строки:

The celebration of the Recon class in our second BF4 Class Week continues with a sneaky stroll down memory lane. Learn more about how the Recon has changed in appearance, name and weaponry over the years…

На самом деле этот текст будет помещен в мета-тег описания, поэтому мне не нужен HTML-тег в метатеге. Как я могу это сделать? Есть идеи и мысли по поводу этой техники?

Ответы на вопрос(3)

Ваш ответ на вопрос