Support » Plugin: Events Manager ESS » ESS Feed incorrectly shows URL

  • Resolved dnk6742


    Thank you for the plugin.

    I have problem with the feed. It seems to double-run the htmlspecialchars() function. URL in the feed looks as follows:
    (@@amp;amp; where @ substitutes &).
    Changing FeedWriter.php line 742 from $nodeText .= htmlspecialchars( $tagContent, ENT_NOQUOTES ) to
    $nodeText .= $tagContent helps, yet “&” still shouldn’t show up in the URL, AFAIK.

    Please fix the problem since the plugin – as well as EM itself is awesome and I’d be glad to buy the full version.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Adding double_encode = false as fourth parameter to all htmlspecialchars () calls helps to fix the problem.

    Plugin Author essfeed


    I’ve look closer to your bug report and I’ve placed the fourth parameter as you suggested to False with the ENT_QUOTES constant:
    $nodeText .= htmlspecialchars( $tagContent, ENT_QUOTES, self::CHARSET, FALSE )

    we have to leave the htmlspecialchars because in some cases the XML file can’t be displayed if the chars & in not properly encoded as &

    Thanks for your report.

    So be it. Thanks for the fix!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ESS Feed incorrectly shows URL’ is closed to new replies.