Padding LOV with spaces

A quick way to take escaped characters back to their “expected” form.

Script Used:  This script searches for all of the OPTION tags that are used in the page, then does a regular expression to replace them with values that will be interpreted by the browser.
It is recommended to place this script at the bottom of the page in a standard – no tempalte region with a name that identifies it’s purpose.
 
<script>
    $(‘option’).each(function(index) {
      $(this).html($(this).text().replace(/&NBSP;/g,’&nbsp;’));
    });
</script>

Leave a Reply

Your email address will not be published. Required fields are marked *