Remove Whitespace from Function Output


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php echo preg_replace('/>\s+</m', '><', wp_list_pages('echo=0')); ?>

URL: http://css-tricks.com/snippets/wordpress/remove-whitespace-from-function-output/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.