Guest User

Untitled

a guest
Apr 22nd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. #!/usr/bin/env php
  2. <?php
  3.  
  4. // this is a TextMate command that converts { and } characters to the HTML entities so they don't get parsed in docs
  5.  
  6. $matches = array('{','}');
  7. $replacements = array('&#123;','&#125;');
  8.  
  9. echo str_replace($matches,$replacements,$_ENV['TM_SELECTED_TEXT']);
  10.  
  11. ?>
Add Comment
Please, Sign In to add comment