HTML Tags showing on Datagrids



  • Hello,

    I have created a Datagrid while adding and editing I am using TinyMCE Editor. While Listing data into the Datagrid it is showing HTML Tags.

    How can we hide that?

    Datagrid code is

    $this->addColumn([
                'index'      => 'address',
                'label'      => trans('contact::app.contact_address_layout.address'),
                'type'       => 'string',
                'searchable' => true,
                'sortable'   => true,
                'filterable' => true,
            ]);
    

    Output is:

    7b517486-fb3d-4ded-ae20-a933537fe42a-image.png

    Please Help. Thank you in Advance.....



  • Hi @himanshu-kmr

    These are encoded due to security reasons. If you want you can edit this file
    packages/Webkul/Ui/src/Resources/views/datagrid/body.blade.php.

    Just replace your braces i.e. {{ }} to {!! !!}.

    But we don't recommend you to do this.



  • @devansh-webkul Thank You so much....


Log in to reply