title: PHP - How to remove double quotes from data that coming from database?
body: <p>I have store data in database text field like this :</p>
  
  <pre><code>&lt;p&gt;&lt;strong&gt;Relish Scrumptious Dessert Delights with Baskin Robbins Gift
   Voucher&lt;/strong&gt;&lt;/p&gt;&lt;span&gt;good&lt;/span&gt;&lt;div&gt;any rendom text&lt;/div&gt; and so on..
  </code></pre>
  
  <p>So now when I print this data in front end then it should be remove HTML tag only show main content of field but no, it's show me same data that I store in database because it's taking it as a string means when I'm fetching data from database it's add <strong>double quotes</strong> at beginning and end of the data so it's read as a string and show me same data as I have in database.</p>
  
  <p>I check using inspect element and show that it adds <strong>double quotes</strong> automatically so for testing I have removed <strong>double quotes</strong> using inspect element and all data is showing correctly.  </p>
  
  <p>I tried to replace <strong>double quotes</strong> with space using jquery when page load but my actual data don't contain any <strong>double quotes</strong> so jquery function is not replacing anything.</p>
  
  <p>I tried hard to explain my problem I hope you guys will understand my problem and someone let me know the solution for this weird problem that I'm facing. </p>
  
  <blockquote>
    <p>UPDAT</p>
  </blockquote>
  
  <p>BrandController.php</p>
  
  <pre><code>public function get_brand_api(){
  
  
  $select = "SELECT
                 b.*,
                 GROUP_CONCAT(bp.p_name) AS price,
                 GROUP_CONCAT(bp.p_skuId) AS sku,
                 GROUP_CONCAT(bp.p_type) AS type,
                 GROUP_CONCAT(bp.p_valueType) AS valuetype
                 FROM
                 brands AS b
                 LEFT JOIN
                 brand_price AS bp ON b.hash = bp.hash
                 WHERE b.slug = :slug GROUP BY  b.brand_id
                 ";
      $sth = $this-&gt;connection-&gt;prepare($select);
      $sth-&gt;bindParam(":slug", $slug);
      $sth-&gt;setFetchMode(PDO::FETCH_ASSOC);
      $sth-&gt;execute();
      $status = $sth-&gt;fetchAll();
  
      return $status;
  
  
  }
  </code></pre>
  
  <p>brand_detail.blade.php</p>
  
  <pre><code>&lt;div id="container_detail"&gt;
    &lt;brand-detail&gt;&lt;/brand-detail&gt;
  &lt;/div&gt;
  &lt;template id="brand-detail-template"&gt;
     &lt;div class="content"&gt;
        &lt;h1&gt; @{{d.brand_name}} &lt;/h1&gt;
        &lt;img :src="d.image" class=""&gt;     
     &lt;/div&gt;
      @{{d.description}} // HERE I AM GETTING HTML TAGS WITH DATA.
  &lt;/template&gt;
  </code></pre>
  
  <p>brand_detail.js</p>
  
  <pre><code>Vue.component('brand-detail', {
  
  template: '#brand-detail-template',
  
  data: function(){
  
  return {
  
      detail: []
  
  }
  
  },
  
  created: function(){
  //var slug = this.$route.params.slug;
  var slug = window.location.pathname.split("/").pop();
  var url = window.location.protocol + "//" + window.location.host + "/";
  
  var api_url = url + 'gift_india/brand_detail/' + slug;
  var that = this
  axios.get(api_url)
      .then(function (response) {
          //console.log(response.data);
          that.detail = response.data;
  
      })
      .catch(function (error) {
          console.log(error.data);
      });
  
      },
  
     filters: {
  removehtml: function (value) {
      if (!value) return ''
      var myContent = value;
      return myContent.replace(/(&lt;([^&gt;]+)&gt;)/ig,"");
  },
  strtoarr: function (value) {
  
      var array = JSON.parse("[" + value + "]");
      return array;
  }
  
  
  }
  
  
  
  });
  
  
  
   new Vue({
  
  
  
   el: '#container_detail'
  
  
  
   })
  </code></pre>
  
  <p>above blade template code is related Vue js so there is some rendom tags and template.</p>