Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #703067

    Hi, when I save a pricing table, all backslashes get stripped, so D:\Box turns into D:Box. How do I preserve these characters?

    #703111

    Hey DJQuad,

    Can you replace:

    \

    to:

    <span class="backslash"></span>

    basically it looks like this:

    D:<span class="backslash"></span>Box

    and in functions.php add this code:

    function replace_to_backslash(){
    ?>
      <script>
        jQuery(window).load(function(){
          jQuery('.backslash').replaceWith('\');
        });
      </script>
    <?php
    }
    add_action('wp_footer', 'replace_to_backslash');

    This might be a bit hassle but it should work. Let us know if it helps. :)

    Best regards,
    Nikko

    #703395

    Is editing functions.php a must?

    #703413

    Hey!

    Yes, the code is required to make it work.

    Thanks a lot

    Best regards,
    Basilis

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.