Skip to content

Instantly share code, notes, and snippets.

@bulfaitelo
Last active June 14, 2017 11:57
Show Gist options
  • Save bulfaitelo/ebc3ee89a036454d0325f4484315cd60 to your computer and use it in GitHub Desktop.
Save bulfaitelo/ebc3ee89a036454d0325f4484315cd60 to your computer and use it in GitHub Desktop.
Diferença entre {{ }} e {!! !!} Blades Laravel
<?php
$new = htmlspecialchars("<a href='test'>Test</a>", ENT_QUOTES);
echo $new; // &lt;a href=&#039;test&#039;&gt;Test&lt;/a&gt;
// laravel exemplo:
{{ <a href='test'>Test</a> }}
//Retorna:
// &lt;a href=&#039;test&#039;&gt;Test&lt;/a&gt;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment