PHP code example of laravelgems / blade-escape

1. Go to this page and download the library: Download laravelgems/blade-escape library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

laravelgems / blade-escape example snippets


<div style="background-color: @css($color);">
    <label>@text($label)</label>
    <input type="text" name="custom" value="@attr($value)"/>
</div>
<a href="/profile?u=@param($username)">Profile</a>
<button onclick="callMyFunction('@js($username)');">Validate</button>
<script>
    var username = "@js($username)";
</script>

        /*
         * Package Service Providers...
         */
         ...
         LaravelGems\BladeEscape\Providers\BladeEscapeServiceProvider::class,
         ...

<p>@text($resume)</p>
<div>@text($bio)</div>

<input type="text" value="@attr($variable)"/>
<img src="image.png" alt="@attr($variable)"/>

<a href="search?keyword=@param($variable)">Click Me</a>

<script>
    var username = "@js($variable)";
</script>
<a href="#" onclick="displayDialog('@js($title)');">Click</a>

<style>
    .article { background-color: '@css($color)';}
</style>
<span style="width: '@css($width)';"></span>