Skip to content

Commit 4c46500

Browse files
committed
revert
1 parent 1807c92 commit 4c46500

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

Diff for: src/Illuminate/Translation/Translator.php

-2
Original file line numberDiff line numberDiff line change
@@ -264,8 +264,6 @@ protected function makeReplacements($line, array $replace)
264264
$replace = $this->sortReplacements($replace);
265265

266266
foreach ($replace as $key => $value) {
267-
$value = e($value);
268-
269267
$line = str_replace(
270268
[':'.$key, ':'.Str::upper($key), ':'.Str::ucfirst($key)],
271269
[$value, Str::upper($value), Str::ucfirst($value)],

Diff for: tests/Translation/TranslationTranslatorTest.php

+6-6
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ public function testGetMethodProperlyLoadsAndRetrievesItem()
4949
$this->assertEquals('foo', $t->get('foo::bar.foo'));
5050
}
5151

52-
public function testTransMethodProperlyLoadsAndRetrievesItemWithHTMLReplacements()
53-
{
54-
$t = new \Illuminate\Translation\Translator($this->getLoader(), 'en');
55-
$t->getLoader()->shouldReceive('load')->once()->with('en', 'foo', '*')->andReturn(['bar' => 'breeze :foo']);
56-
$this->assertSame('breeze &lt;p&gt;test&lt;/p&gt;', $t->trans('foo.bar', ['foo' => '<p>test</p>'], 'en'));
57-
}
52+
// public function testTransMethodProperlyLoadsAndRetrievesItemWithHTMLReplacements()
53+
// {
54+
// $t = new \Illuminate\Translation\Translator($this->getLoader(), 'en');
55+
// $t->getLoader()->shouldReceive('load')->once()->with('en', 'foo', '*')->andReturn(['bar' => 'breeze :foo']);
56+
// $this->assertSame('breeze &lt;p&gt;test&lt;/p&gt;', $t->trans('foo.bar', ['foo' => '<p>test</p>'], 'en'));
57+
// }
5858

5959
public function testTransMethodProperlyLoadsAndRetrievesItemWithHTMLInTheMessage()
6060
{

0 commit comments

Comments
 (0)