-// prevent restorelinks before block apply (otherwise [[Sécurité]] will give
-// .../S<span class='e9curit'>e9'>Sécurité</a>
+// Preserve javascript
+Markup('[[javascript', '<[[javascript:', '/\[\[javascript:([^\|]*)\|([^\]]*)?\]\]/e',
+ 'PreserveText("=", \'<a href="javascript:\' . htmlentities("$1") . \'">\', "") . "$2" . PreserveText("=", "</a>", "")');
+
+// prevent restorelinks before block apply (otherwise [[Sécurité]] will give
+// .../S<span class='e9curit'>e9'>Sécurité</a>