I am looking to insert a pipe character between links, with the exception of after the last one. The HTML is being rendered in such a way that it has the same class applied.
<!DOCTYPE html>
<html>
<head>
<style>
p:last-of-type {
background: #ff0000;
}
</style>
</head>
<body>
<h1>This is a heading</h1>
<div class="sample" style="display:inline-block">
<div >
<p class="para">link1</p>
</div>
</div>
<div class="sample" style="display:inline-block">
<div >
<p class="para">link1</p>
</div>
</div>
<div class="sample" style="display:inline-block">
<div >
<p class="para">link1</p>
</div>
</div>
</body>
</html>
I want to display a Pipe character after each link, but not after the final one. How can I achieve this within this scenario?
P.S. : Although it's easy when dealing with different classes for each link, my case involves dynamic links without displaying a pipe after the very last one.