How do I do output HTML that comes back from database after it s been decoded back from html entities to HTML. I m learning how to use Tinymce and I m stuck. I can t echo the HTML because it just prints it in the page. Do I have to look on the DOM side with DOMDocument? I ve seen this question asked on different sites but never answered clearly.Or maybe i m such a newbie that the answer is right in front of me. Thanks!
<?php
$page_title = "Brian Aylward comedy website";
$current_page = "home";
include("site_admin/tinymce/shows/db.php");
doDB();
$get_contents_sql = "SELECT * FROM tinymce_contents";
$get_contents_res = mysqli_query($mysqli, $get_contents_sql)
or die(mysqli_error($mysqli));
if ($get_contents_res = mysqli_query($mysqli, $get_contents_sql)) {
while ($row = mysqli_fetch_assoc($get_contents_res)) {
$contents = $row[ contents ];
$fill_block = html_entity_decode($contents);
}
}
mysqli_close($mysqli);
include_once ./includes/header.php ; ?>
<span id="mikemouth"></span>
<div id="jacket">
<h2 id="showtitle">LIVE DATES</h2>
<div id="shows">
<div class="shows_content">
<?php
//I want to output the HTML here but can t use echo $fill_block; since it will print
//the HTML in the webpage when I want it parsed as HTML.Does it make sense?
?>