I have a list with the following markup:
<ul class="meta meta-event">
<li>September 4 @ 10:00 am - 5:00 pm</li>
<li>Some Hotel, London</li>
</ul>
But I'd like to insert a <br /> tag before the '@' character (I need to do this in jQuery due to it being a WP plugin with little customisation optons)
Does anyone know how I can do it?
$('.meta-event li:contains("@")').html(function(i,html){ return html.replace(/@/, '<br />@') })