Elhebert / laravel-sri

Subresource Integrity hash generator for laravel
MIT License
40 stars 16 forks source link

Fix generate html facade #53

Closed PanjiNamjaElf closed 4 years ago

PanjiNamjaElf commented 4 years ago

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=&#039;sha256-ijZ6X3DXEILXpaiHcciFfBfpVZRwneRJ9MXfc9iuCF8=&#039; crossorigin=&#039;anonymous&#039;>