Hi guys,
There's one very simple question to which i have not been able to find an answer on the forum...
I'm trying to include HTML code in the "summary" or "description" fields for an album, however the HTML code is not parsed, but is displayed as simple text.
What's the simplest way of achieving this (as i understand from other posts that the removeTags() function poses security threats) ?
I'm not interested in having HTML parsed in user comments, only in the fields mentioned above.
Cheers !
====================
Gallery version = 2.3 core 1.3.0
API = Core 7.54, Module 3.9, Theme 2.6, Embed 1.5
PHP version = 5.2.1 cgi
Webserver = Apache
Database = mysqli 5.0.83-log, lock.system=flock
Toolkits = ArchiveUpload, ImageMagick
Acceleration = none, none
Operating system = Linux cgi0501.int.bizland.net 2.6.32.3-nx #1 SMP Wed Jan 13 15:09:52 EST 2010 i686
Default theme = carbon
Posts: 6138
http://gallery.menalto.com/node/85750#comment-301027
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 21
Thanks!
I took a look at your posts in that thread and I've replaced the htmlSafe() with this :
function htmlSafe($html, $decode=false) {
return $html;
}
but i still see the HTML tags not parsed... I also tried with $decode=true, same result.
Is there anything else I need to change ?
Cheers
Posts: 6138
Gallery admin -> Embedded Markup -> Raw HTML
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 21
awesome, that did the trick !
thanks