Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can use <code>strip_tags( )</code> (<a href="http://us1.php.net/strip_tags" rel="nofollow">http://us1.php.net/strip_tags</a>) to remove HTML tags from a string.</p> <p>I think the best solution for your scenario would be to simply output the HTML outside of the textarea. Doing that will display the "styled" text/rendered HTML that the user created in TinyMCE.</p> <p>Here's my suggestion based on your code:</p> <pre><code>} else { $code = $_POST['view_id']; $sql = 'SELECT * FROM review WHERE `Reviewnr` = :code '; $std = maakConnectie()-&gt;prepare($sql); $std-&gt;bindValue (":code", $code, PDO::PARAM_STR); $std-&gt;execute(); $result = $std-&gt;fetchAll(PDO::FETCH_ASSOC); if(count($result) ==0) { echo 'U heef geen review geschreven, &lt;a href="schrijven_review.php"&gt;Klik hier &lt;/a&gt; om een review te schrijven'; } else { echo '&lt;table&gt;'; foreach ($result as $index =&gt; $value){ $code = $value['Reviewnr']; echo ' &lt;tr&gt; &lt;td class="bold"&gt; Review nr: &lt;/td&gt; &lt;td&gt; '.$value['Reviewnr'].'&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="bold"&gt; Laatst gewijzigd op: &lt;/td&gt; &lt;td&gt; '.$value['Laatste_wijzigingsdatum'].'&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="bold"&gt; Geplaatst op:&lt;/td&gt; &lt;td&gt;'. $value['Plaatsings_datum'].'&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="bold"&gt; Titel: &lt;/td&gt; &lt;td&gt;'. $value['Titel'].'&lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;table&gt; &lt;tr&gt; &lt;td class="bold"&gt; Review: &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt;'. $value['Inhoud'].'&lt;/td&gt; &lt;/tr&gt; '; } echo '&lt;/table&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload