How to avoid Pathologic module to change a javascript src value? I need to insert a javascript code in a textarea field of a node. This one:

&lt;script type="text/javascript" src="http://www.avaibook.com/js/avaibook.js"&gt;&lt;/script&gt;


The problem is that this line becomes:

&lt;script type="text/javascript" src="about:blank"&gt;&lt;/script&gt;


The real source value: http://www.avaibook.com/js/avaibook.js is replaced by about:blank.

I already know that the pathologic module is the cause (if I disable it it works fine), but can't disable since I need it for other purposes.

Is there any way to avoid this?
You can try adding Javascript in your template files by using

&lt;?php
drupal_add_js(drupal_get_path('theme', 'mytheme') .'/mytheme.js');
?&gt;


also this works in modules etc as explained here: http://drupal.org/node/304255

sometimes it is comfortable to add whole JavaScript inline:

drupal_add_js('jQuery(document).ready(function(){   
   // Your stuff
   })      
', 'inline');


Hope that helps avoid that module behaviour.