Add javascript to articles

Development-related discussion, including bundled plugins
Bear Rating Trainee
Bear Rating Trainee
Posts: 12
Joined: 18 Mar 2013, 14:10
Location: Hosted tt-rss :

Add javascript to articles

Postby anthony » 15 Apr 2013, 12:48

I'm trying to add javascript code inside articles (function format_headlines_list, in feeds.php), like this:

Code: Select all

$reply['content'] .= "<script>alert('test');</script>";

However, the script is not running. What is preventing it? Using firebug I can see the markup and alert code.

Return to “Development”

Who is online

Users browsing this forum: No registered users and 2 guests