Changes to not strip HTML tags for Autoviewer (1 post)

  1. webleo
    Posted 5 years ago #

    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!


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • NextGEN-FlashViewer
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 5 years ago by webleo
  • This topic is not a support question
  • WordPress version: 3.0.4