Přidat otázku mezi oblíbenéZasílat nové odpovědi e-mailem PHP - úryvek z textu

Mam nactenej text s html tagama z databaze a potreboval bych z nej vytahnout kratkej uryvek - prvni "odstavec" (neni ohranicenej <p></p>, ale jenom <br>) s min. delkou 10 slov.
Jenom souvisly text bez obrazku.

text muze vypadat takhle:

<br><img src="" title="" alt="">
<br>
<br>
<br><strong>Lorem Ipsum</strong> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s
<br>
<br>Aldus PageMaker including versions of Lorem Ipsum.
<br>

nebo takhle:
<br>Aldus PageMaker including versions of Lorem Ipsum.
<br><strong>Lorem Ipsum</strong> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s
<br>
<br>

a z obojich prikladu bych potreboval vytahnout jenom tohle
<strong>Lorem Ipsum</strong> is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s

Odpověď na otázku

1 Zadajte svou přezdívku:
2 Napište svou odpověď:
3 Pokud chcete dostat ban, zadejte libovolný text:

Zpět do poradny