一千萬個為什麽

搜索

DRUPAL,CKEditor:我無法使用Javascript添加html標記

我已經實現了一個Drupal網站。

我的客戶希望使用後端文本編輯器CKEditor編寫javascript腳本(以生成包含電子郵件的html代碼)。

我啟用了javascript格式化,現在腳本在編輯器中成功運行。但是,作為電子郵件腳本的結果,我在頁面中看到了未處理的html內容:

換句話說,我看到了html標簽,而不是看到電子郵件鏈接。

I guess this is due to the parenthesis formatting. If I replace < with < in Firebug, the html is processed and the links works. However I'm not able to do this from the editor. If I type < or < the result is the same...

This is the script (as you can see the script uses < symbol:

<script type="text/javascript">
var mtmgkch = ['a','l',':','r','l','e','s','"','r','c','@','l','e','e','c','f','a','r','l','e','/','r','l','s','.','o','h',' ','c','=','r','i','"','l','t','o','r','.','a','l','c','h','m','"','=','>','a','o','l','t','g','@','>','<','i',' ','n','t','o','g','c','t','i','r','l','n','m','t','o','a','h','c','a','<','c','i','"','a'];var gnbjzhz = [1,50,15,24,70,46,43,51,61,39,60,63,5,28,72,6,57,69,40,65,75,4,12,42,34,14,73,38,16,44,66,11,8,64,19,25,32,71,48,26,53,36,9,37,7,77,20,54,27,56,67,23,52,0,31,2,55,22,62,30,21,59,68,29,33,18,47,13,17,10,3,35,76,74,58,49,45,41];var aiyrdgx= new Array();for(var i=0;i

謝謝

最佳答案

如果您只是尋找電子郵件模糊處理以防止垃圾郵件機器人,請查看這兩個模塊,這將使客戶不必為他們可能輸入的每封電子郵件創建JavaScript:

轉載註明原文: DRUPAL,CKEditor:我無法使用Javascript添加html標記