[SPIP][PLUGINS] v3.0-->v3.2
[lhc/web/www.git] / www / plugins-dist / textwheel / wheels / spip / echappe-js.yaml
1 --- # Syntaxe des raccourcis SPIP, version 0.0.1
2 #
3 # Si on nomme une regle, elle devient surchargeable
4
5 -
6 if_str: "<script"
7 match: "{<script.*?($|</script.)}isS"
8 is_wheel: y
9 replace:
10 -
11 type: all
12 replace: htmlspecialchars
13 is_callback: Y
14 -
15 type: all
16 replace: nl2br
17 is_callback: Y
18 -
19 type: all
20 replace: "<code class=\"echappe-js\">$0</code>"
21
22 -
23 if_str: "<iframe"
24 match: "{<iframe.*?($|</iframe.)}isS"
25 is_callback: Y
26 replace: echappe_anti_xss
27
28 -
29 if_str: "<embed"
30 match: "{<embed.*?($|</embed.)}isS"
31 is_callback: Y
32 replace: echappe_anti_xss
33
34 -
35 if_str: "<object"
36 match: "{<object.*?($|</object.)}isS"
37 is_callback: Y
38 replace: echappe_anti_xss
39
40 -
41 if_str: "<img"
42 match: "{<img.*?($|>)}isS"
43 is_callback: Y
44 replace: echappe_anti_xss
45
46 -
47 if_str: "<image"
48 match: "{<image.*?($|>)}isS"
49 is_callback: Y
50 replace: echappe_anti_xss
51
52 -
53 if_str: "<body"
54 match: "{<body.*?($|>)}isS"
55 is_callback: Y
56 replace: echappe_anti_xss
57
58 -
59 if_str: "<bgsound"
60 match: "{<bgsound.*?($|>)}isS"
61 is_callback: Y
62 replace: echappe_anti_xss
63
64 -
65 if_str: "<meta"
66 match: "{<meta.*?($|>)}isS"
67 is_callback: Y
68 replace: echappe_anti_xss