echappe-js.yaml 414 B

123456789101112131415161718192021
  1. --- # Syntaxe des raccourcis SPIP, version 0.0.1
  2. #
  3. # Si on nomme une regle, elle devient surchargeable
  4. -
  5. if_str: "<script"
  6. match: "{<script.*?($|</script.)}isS"
  7. is_wheel: y
  8. replace:
  9. -
  10. type: all
  11. replace: htmlspecialchars
  12. is_callback: Y
  13. -
  14. type: all
  15. replace: nl2br
  16. is_callback: Y
  17. -
  18. type: all
  19. replace: "<code class=\"echappe-js\">$0</code>"