to_header_string was a bad idea...
[old-projects.git] / philter / philter / include / plugin_header.inc.php
index b9b8e56..fa26d49 100644 (file)
@@ -13,8 +13,8 @@ class HdrPlugin extends MatchPlugin {
     function name() { return _i18n('2_hdr'); }
 
     function to_js() {
-        return
-"function(Node, data) {
+        return <<<EOF
+function(Node, data) {
     var i,j;
     var sel = 0;
     
@@ -56,7 +56,8 @@ class HdrPlugin extends MatchPlugin {
     txt_i.setAttribute('name', Node.name+'[3]');
     txt_i.setAttribute('value', (data[3] ? data[3] : '') );
     Node.appendChild(txt_i);
-}";
+}
+EOF;
     }
 }