ich will zB, dass alles innerhalb eines non-nestable-block-tag steht (p, h, ul, ol, ...).
lösung (dachte ich mir): BeautifulSoup.
funktioniert nur leider auch nicht.
code:
Code: Alles auswählen
<h1>Title 1st order</h1>
<img src='#' />and some text with a break<br />which goes on...
<p>and a paragraph</p>
Code: Alles auswählen
<h1>Title 1st order</h1>
<p><img src='#' />and some text with a break<br />which goes on...</p>
<p>and a paragraph</p>
danke,
patrick