Expand description
Laravel Blade’s HTML, JSON and JavaScript encoders.
The JavaScript wrapper follows Laravel’s MIT-licensed Illuminate\Support\Js.
Structs§
- Json
Flags - Options accepted by PHP’s
json_encode.
Enums§
- Array
Key - A key in an insertion-ordered PHP array or JSON object.
- Encode
Error - An encoding failure reported by PHP’s JSON encoder.
- Json
Kind - A borrowed view of a value that the encoders can consume.
Traits§
- Json
Value - Provide a value to Blade’s encoders without converting ordered PHP keys to JSON strings.
Functions§
- e
- Escape HTML text with Laravel’s default double encoding.
- e_
with_ double_ encode - Escape HTML text as Laravel’s
e(), optionally preserving existing HTML 4 entities. - escape_
html_ bytes - Escape raw UTF-8 bytes, replacing malformed sequences as PHP’s
ENT_SUBSTITUTEdoes. - js
- Encode a value as Laravel’s
Js::from(Blade’s@js). - json
- Encode a value as Blade’s
@json. Omit flags and depth for the Blade defaults.
Type Aliases§
- Entries
- An iterator in the order keys were inserted.