Am in the process of changing from Adsense to Lijit advertising solutions. I've been using the Content Injector with the Adsense module and this combination has worked fine.

When I insert Lijit's Javascript code (below) to any of the fields it is not properly rendered by Drupal. Looking through the node's source, it renders the "&" in the javascript's argument as "&" which breaks it from properly executing.

Code:
<script type="text/javascript" src="http://ap.lijit.com/www/delivery/fpi.js#?z=164557&u=cinemafunk&width=728&height=90"></script>

However, when I insert this code into a node and apply the default PHP filter, it works perfectly. I need this code to work in Content Injector's inline insertion so I can take advantage of the Xpath function which I love.

Any and all help will be appreciated.

Comments

greg boggs’s picture

Version: 7.x-3.1-alpha2 » 7.x-3.x-dev
Category: support » feature
greg boggs’s picture

Allowing a drupal module to by pass filtering like this is against Drupal Security policy. Removing the check could allow for malicious users to capture admin privileges. The only way to get around this and still comply with Drupal security would be to implement a filter selection on the fields. Given the very low use case of such a feature, it's very unlikely anyone will do this.

Instead, you could patch the module to remove the filter unless someone else has a better solution?