I have a unique Java library that includes a special function used for converting English numbers to Persian. Here's an example:
persianJs("345").englishNumber().toString(); //returns: ۳۴۵
In my HTML setup, I want to display dynamic numerical values in Persian format using the following structure:
<span class="price"><!-- price amount --></span>
Is there a way to execute this JavaScript function in either the header or footer section to automatically showcase any price amount in Persian?