Please I need some help in removing all the white spaces from all the <li>
tag ids.
The ids are dynamically generated from the title of a podcast rss feeds.
How do I convert all the ids (with white spaces) in the following <li>
tags:
<li id="The Purpose of Commitment"> ...some content... </li>
<li id="Take Your Seat"> ...some content... </li>
<li id="The Power of the Soil"> ...some content... </li>
<li id="Seasons of Silence"> ...some content... </li>
into ids (without white spaces). Output example below:
<li id="ThePurposeofCommitment"> ...some content... </li>
<li id="TakeYourSeat"> ...some content... </li>
<li id="ThePoweroftheSoil"> ...some content... </li>
<li id="SeasonsofSilence"> ...some content... </li>
I have searched this forum and found similar questions asked here:
how to replace all white spaces in a string and here: replace all spaces in a string. I don't know how to accomplish this on the <li>
tags.
I really appreciate your help. Thanks