Skip to content

Commit

Permalink
double encode method
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jan 5, 2018
1 parent 61f8477 commit 1cc96a1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/Illuminate/View/Compilers/BladeCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -455,4 +455,14 @@ public function setEchoFormat($format)
{
$this->echoFormat = $format;
}

/**
* Set the echo format to double encode entities.
*
* @return void
*/
public function doubleEncode()
{
$this->setEchoFormat('e(%s, true)');
}
}

0 comments on commit 1cc96a1

Please sign in to comment.