Skip to content

Instantly share code, notes, and snippets.

@ikekou
Created July 13, 2013 23:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ikekou/5992631 to your computer and use it in GitHub Desktop.
Save ikekou/5992631 to your computer and use it in GitHub Desktop.
[jade][php] jadeでhtmlタグとかphpタグとか、エンコードしたくないものを書く場合
// !が重要。テキスト部分に関しては特に何もしなくても大丈夫。属性値部分は=だけだとエンコードされちゃう。
a(href!='<?php echo $foo; ?>') <?php echo $foo; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment