You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
515 B

--- # 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: spip_htmlspecialchars
is_callback: Y
-
type: all
replace: nl2br
is_callback: Y
-
type: all
replace: "<code class=\"echappe-js\">$0</code>"
-
if_str: "<"
match: "{<[a-z]+.*?($|>)}UisS"
is_callback: Y
replace: echappe_anti_xss