Closed PanjiNamjaElf closed 4 years ago
When run Sri::html the html quote escaped.
Sri::html
Source: <link href="{{ asset('css/app.css') }}" rel="stylesheet" {{ Sri::html('css/app.css') }}>
<link href="{{ asset('css/app.css') }}" rel="stylesheet" {{ Sri::html('css/app.css') }}>
Expected result: <link href="/css/app.css" rel="stylesheet" integrity="sha256-ijZ6X3DXEILXpaiHcciFfBfpVZRwneRJ9MXfc9iuCF8=" crossorigin="anonymous">
<link href="/css/app.css" rel="stylesheet" integrity="sha256-ijZ6X3DXEILXpaiHcciFfBfpVZRwneRJ9MXfc9iuCF8=" crossorigin="anonymous">
Actual result: <link href="/css/app.css" rel="stylesheet" integrity='sha256-ijZ6X3DXEILXpaiHcciFfBfpVZRwneRJ9MXfc9iuCF8=' crossorigin='anonymous'>
<link href="/css/app.css" rel="stylesheet" integrity='sha256-ijZ6X3DXEILXpaiHcciFfBfpVZRwneRJ9MXfc9iuCF8=' crossorigin='anonymous'>
When run
Sri::html
the html quote escaped.Source:
<link href="{{ asset('css/app.css') }}" rel="stylesheet" {{ Sri::html('css/app.css') }}>
Expected result:
<link href="/css/app.css" rel="stylesheet" integrity="sha256-ijZ6X3DXEILXpaiHcciFfBfpVZRwneRJ9MXfc9iuCF8=" crossorigin="anonymous">
Actual result:
<link href="/css/app.css" rel="stylesheet" integrity='sha256-ijZ6X3DXEILXpaiHcciFfBfpVZRwneRJ9MXfc9iuCF8=' crossorigin='anonymous'>