My code is now sending data without html tag (h2 Hello /h2) -> Hello
But i want to this: h2 Hello /h2
<?php
include 'dbConfig.php';
$sql = "SELECT * FROM pmsg ORDER BY send_on";
$result = $db->query($sql);
if($result->num_rows > 0){
while($row = $result->fetch_assoc()) {
?>
<div class='message_container'>
<span><b><?php echo $row['author']?></b></span><br>
<?php $text = '<span class="txt">'.$row['message'].'</span>' ;
echo strip_tags($text);
?>
</div>
<?php
}
}
?>```