Support Forums

Full Version: PHP Echo HTML From MySQL Value?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
so in the mysql it has html

[Image: 3d95368113be4c16e3baa2de95eaab15.png]

so on the index page where im trying to get the HTML it just shows:

[Image: 31b0a5fea66655d7e95be77bc1426bee.png]

PHP Code:
<?php echo htmlentities(getAppSetting('indexeditor')); ?>

is whats on the index page

everything works fine exept it displays as text not as html ?


can anyone help?
Why are you using htmlentities() function if in the database it's already html?
Try adding HTML tags round the HTML code?
HTML tag won't matter. A browser should render the html anyways.
OP got his problem sorted on HF.
(03-17-2011, 02:41 PM)Cida Wrote: [ -> ]OP got his problem sorted on HF.

What was the issue?

(03-17-2011, 01:58 PM)Omniscient Wrote: [ -> ]HTML tag won't matter. A browser should render the html anyways.

Oh, I wasn't aware of this.
(03-18-2011, 01:15 PM)★Cooldude★ Wrote: [ -> ]What was the issue?

The usage of htmlentities().
(03-18-2011, 02:46 PM)Cida Wrote: [ -> ]The usage of htmlentities().

It wasn't needed? I thought that could be the issue but I wasn't sure.