li:after{ content:"\00b6"; }
<ol>
<li>banana</li>
<li>orange</li>
<li class="last-class">apple</li>
</ol>
I am currently working on a dynamic list where the number of <li>
tags varies over time. I need to remove the HTML unicode content from the last element, which has a specific class (in this case, "last-class"). Is it feasible to achieve this using CSS?
Note: I am aware that it can be done with different fonts, but I have chosen not to use that method here.