title: PHP MYSQLdisplaying unwanted span tags
body: <p>I am submitting some text to a MYSQL database using php, however I am getting some unwanted styling with the text. I am wanting to basically keep all the text in one paragraph tag and just have breaks to separate the lines. When I look at the text in the database it is included with all the styling tags such as brs', spans' and divs'. I want the break tags but not the spans and divs. Why would this be happening and how can I prevent the spans and divs from being included with the inserted text. I will provide my code below.</p>
  
  <p>here is the php update code</p>
  
  <pre><code>if($_POST['about']){
  
    $edit_desciption = $_POST['about'];
    $id = 1;
  
      $stmt = $conn-&gt;prepare('UPDATE table_name SET about = ? WHERE id = ?');
    $stmt-&gt;bind_param("si", $edit_desciption, $id); 
  
    $stmt-&gt;execute();
  
    // echo $final_outputs;
  
    $stmt-&gt;close();
    $conn-&gt;close();
    header("Location: ../../admin_login/logged_in.php");
  
  
   //$connect-&gt;close();
  }
  </code></pre>
  
  <p>and here is the form </p>
  
  <pre><code>    function getContent(){
         document.getElementById("about").value = document.getElementById("about_edit").innerHTML;
      }
  
     &lt;p id="about_edit" contentEditable="true"&gt;&lt;?php echo $output; ?&gt;&lt;/p&gt;
     &lt;div class="col-12"&gt;
       &lt;form id="update_CMS" onsubmit="return getContent()" action="../includes/php/edit.php" Method="POST"&gt;
          &lt;textarea id="about" name="about" style="display: none;"&gt;&lt;/textarea&gt;
          &lt;input type="submit" name="submit" id="edit_submit" /&gt;
       &lt;/form&gt;
     &lt;/div&gt;
  </code></pre>