Support » Plugin: NextGEN-FlashViewer » [Plugin: NextGEN-FlashViewer] Changes to not strip HTML tags for Autoviewer

  • Hi,
    First thanks for an awesome plug-in.

    I have a change to the plug-in to suggest – I wanted to use HTML tags in the captions, as Autoviewer allows, but NextGEN-FlashViewer strips those.

    I made the following change in autoviewer.php, line 52:

    echo '<caption><![CDATA['.strip_tags(nggflash::internationalize($picture->description)).']]></caption>';

    Changed to:

    echo "<caption><![CDATA[".stripslashes(nggflash::internationalize($picture->description))."]]></caption>";

    I removed “strip_tags“, (curious to know why you put it there originally) and since the tags are saved by NGG in the database as escaped strings (<a href=\"demo.php\">) I needed to add “stripslashes“.

    Why not make it a permanent change in the plug-in?

    Thanks again!

    http://wordpress.org/extend/plugins/nextgen-flashviewer/

  • The topic ‘[Plugin: NextGEN-FlashViewer] Changes to not strip HTML tags for Autoviewer’ is closed to new replies.