Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    HTML Tags showing on Datagrids

    General Discussion
    2
    3
    270
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      himanshu-kmr last edited by

      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.....

      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by

        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.

        1 Reply Last reply Reply Quote 0
        • H
          himanshu-kmr last edited by

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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post