I have an issue with TinyMCE.
I put in
<script src="//cdn.tinymce.com/4/tinymce.min.js"></script>
<script>tinymce.init({selector: 'textarea'});</script>
It loads the textarea fine, but no HTML tags goes into my database. It automatically worked on another site i was working on but it currently doesn't work on this one..
What could be the reason of this?
Code below is directly from what the form is going to load when submitting and further down you'll see my HTML code
<?php
include '../dbh.php';
$sDay = filter_input(INPUT_POST, 'sDay', FILTER_SANITIZE_STRING);
$sMonth = filter_input(INPUT_POST, 'sMonth', FILTER_SANITIZE_STRING);
$sYear = filter_input(INPUT_POST, 'sYear', FILTER_SANITIZE_STRING);
$eDay = filter_input(INPUT_POST, 'eDay', FILTER_SANITIZE_STRING);
$eMonth = filter_input(INPUT_POST, 'eMonth', FILTER_SANITIZE_STRING);
$eYear = filter_input(INPUT_POST, 'eYear', FILTER_SANITIZE_STRING);
$eCreated = filter_input(INPUT_POST, 'eCreated', FILTER_SANITIZE_STRING);
$eTitle = filter_input(INPUT_POST, 'eTitle', FILTER_SANITIZE_STRING);
$eAuthor = filter_input(INPUT_POST, 'eAuthor', FILTER_SANITIZE_STRING);
$eDescription = filter_input(INPUT_POST, 'eDescription', FILTER_SANITIZE_STRING);
$sql = "INSERT INTO events (id, eTitle, eAuthor, eStartDate, sDay, sMonth, sYear, eEndDate, eDay, eMonth, eYear, eDescription, eCreated, IsDeleted, eActive)
VALUES (NULL, '$eTitle', '$eAuthor', '$sYear-$sMonth-$sDay', '$sDay', '$sMonth', '$sYear', '$eYear-$eMonth-$eDay',$eDay, $eMonth, $eYear, '$eDescription', '$eCreated', '0', '0');";
$result = mysqli_query($conn, $sql);
header("Location: ../events.php");
<div class="input-field col col-lg-12">
<label for="eDescription">Beskrivelse</label>
<textarea name="eDescription" id="eDescription" type="text"></textarea>
</div>
</div>