'Is there a way to hide chars on start point?

The "$$$" chars were used for get indexof and hide list in code behind. Now I want to ask is there a way to hide these chars with jQuery and/or JavaScript?

$$$<ul id = "myid"class = "listbranch">
       <li>Битола</li>
       <li>Скопје</li>
       <li>Охрид</li>
       <li>Прилеп</li>
       <li>Ресен</li>
       <li>Гостивар</li>
       <li>Куманово</li>
       <li>Гевгелија</li>
       <li>Штип</li>
       <li>Велес</li>
       <li>Пробиштип</li>
       <li>Тетово</li>
       <li>Кочани</li>
       <li>Валандово</li>
       <li>Струмица</li>
       <li>Крива Паланка</li>
       <li>Кавадарци</li>
       <li>Неготино</li>
       </ul>$$$

 



Solution 1:[1]

Don't publish the file with '$$$' in it in the first place. Strip them out during the build process:

sed -ie 's/\$\$\$//g' out.html

Boom, problem solved. If you must keep the '$$$' in the file for some reason you can still pre-process the file:

sed -ie 's?\$\$\$?<span class="ns-hide">$$$</span>/?g' out.html

Good luck!

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Michael Mikowski