I want to retrive all Data out of wordpress /woocomerce and do some replace jobs, but I cant get the real HTML and get only rendered on my browser, also no replace happen. Here my code:
$conn
is my connection to mysql
$query = "SELECT post_content FROM wp_posts";
$result = $conn->query($query);
$data = mysqli_fetch_all($result,MYSQLI_ASSOC);
print_r($data); // this shows me all the data, but it is already processed and not the raw html which is stored into the database
How do I get the real stored html out of the database? I can sea it when I get the source view.