I have a plugin on Wordpress that generates HTML showing titles from a RSS feed, this is a sample of the code below for each item and then it repeats its self for the next few items.
</div>
<ul class="rss-aggregator">
<li class="feed-item">
<a target="_blank" rel="nofollow" href='http://www.football365.com/news/premier-league-winners-and-losers-7'>Premier League winners and losers</a>
<div class="wprss-feed-meta">
<span class="feed-source">Source: Football 365</span>
<span class="feed-date">Published on 2015-10-19</span>
</div>
<div class="wprss-time-ago">31 mins ago</div>
</li>
I was wondering if there is any code I can add to the page to automatically insert a paragraph after </div></li>
as the page changes all the time with different title and URLS but </div></li>
always stays the same after every feed, so the new HTML would look like:
</div>
<ul class="rss-aggregator">
<li class="feed-item">
<a target="_blank" rel="nofollow" href='football365.com/news/… League winners and losers</a>
<div class="wprss-feed-meta">
<span class="feed-source">Source: Football 365</span>
<span class="feed-date">Published on 2015-10-19</span>
</div>
<div class="wprss-time-ago">31 mins ago</div>
</li>
<p>
` element directly after an `
` or `
` elements); you could, however, insert a `- ` element's parent element.
` after the `
` element to go (bearing in mind that the DOM won't create invalid HTML); and offer some details about what you want to create. Given the posted 'input' (the HTML above) what output would you expect to be created? Doees the `
` take any information from what's already there, does it have some static text? Is that the last/only `
` element as a sibling of an `