I have a string that shows each post then a <hr>
element at the end of a post. But I have it so if you delete a post it shows leaves the <hr>
element there so I need a script that will detect if there is more than one <hr>
element and narrow it down so that it will only be left with one below each post.
Is there any chance that it is possible to do???
here is what it looks like to me:
post text post text post text post text post text
<hr>
post text post text post text post text post text post text
<hr>
<hr>
<hr>
<hr>
<hr>
<hr>
<hr>
<hr>
post text post text post text
<hr>
<hr>
post text post text post text post text
<hr>
And I need it to be like:
post text post text post text post text post text
<hr>
post text post text post text post text post text post text
<hr>
post text post text post text
<hr>
post text post text post text post text