Codeigniter-viewmacros is a project mainly written in PHP, it's free.
Php makes you go out of your way to escape the output. To properly escape data outputted to a HTML document, <?=$some_variable?> becomes <?=htmlspecialchars($some_variable, ENT_QUOTES)?>. Sometimes developers make shorted helper functions, such as <?=h($some_variable)?>. That's still more than I would like to do 99% of the time I output data.
SafePhp tags were designed around the following ideas:
SafePhp examples: <%=$escape_this_variable%> <%==$dont_escape_this%> <%if(...):%> <%foreach(...):%>
Installation instructions:
SafePhp extensions are now installed. To be used, they need to be enabled in application/config/config.php
Provided with these libs is a testpage. In your browser, go to $CI_ROOT/index.php/safephptest. If the description matches the output, you're good to go.