Hi, when I save a pricing table, all backslashes get stripped, so D:\Box turns into D:Box. How do I preserve these characters?
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
Is editing functions.php a must?
Hey!
Yes, the code is required to make it work.
Thanks a lot
Best regards,
Basilis