How can i remove last element of span tag in menu using jscript?
<p>i have menu structrue like below</p>

<p>Testimonials | Photo Credits | Privacy Policy | Terms of use|</p>

<p>how do i remove the last pipe (|) symbol using jscript. every pipe(|) within the </p>

<pre><code>&lt;li&gt;&lt;span&gt; | &lt;/span&gt;&lt;/li&gt;
</code></pre>

<p>how</p>
