[SPIP] +version 3.0.7
[ptitvelo/web/www.git] / www / plugins-dist / textwheel / wheels / spip / echappe-js.yaml
diff --git a/www/plugins-dist/textwheel/wheels/spip/echappe-js.yaml b/www/plugins-dist/textwheel/wheels/spip/echappe-js.yaml
new file mode 100644 (file)
index 0000000..9684738
--- /dev/null
@@ -0,0 +1,20 @@
+--- # Syntaxe des raccourcis SPIP, version 0.0.1
+    #
+    # Si on nomme une regle, elle devient surchargeable
+
+-
+  if_str: "<script"
+  match: "{<script.*?($|</script.)}isS"
+  is_wheel: y
+  replace:
+    -
+      type: all
+      replace: htmlspecialchars
+      is_callback: Y
+    -
+      type: all
+      replace: nl2br
+      is_callback: Y
+    -
+      type: all
+      replace: "<code class=\"echappe-js\">$0</code>"