File "echappe-js.json"

Full path: /home/argothem/www/v4_old/plugins-dist/textwheel/wheels/spip/echappe-js.json
File size: 1.44 KB
MIME-type: application/json
Charset: utf-8

[
  {
    "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": "<iframe",
    "match": "{<iframe.*?($|<\/iframe.)}isS",
    "is_callback": "Y",
    "replace": "echappe_anti_xss"
  },
  {
    "if_str": "<embed",
    "match": "{<embed.*?($|<\/embed.)}isS",
    "is_callback": "Y",
    "replace": "echappe_anti_xss"
  },
  {
    "if_str": "<object",
    "match": "{<object.*?($|<\/object.)}isS",
    "is_callback": "Y",
    "replace": "echappe_anti_xss"
  },
  {
    "if_str": "<img",
    "match": "{<img.*?($|>)}isS",
    "is_callback": "Y",
    "replace": "echappe_anti_xss"
  },
  {
    "if_str": "<image",
    "match": "{<image.*?($|>)}isS",
    "is_callback": "Y",
    "replace": "echappe_anti_xss"
  },
  {
    "if_str": "<body",
    "match": "{<body.*?($|>)}isS",
    "is_callback": "Y",
    "replace": "echappe_anti_xss"
  },
  {
    "if_str": "<bgsound",
    "match": "{<bgsound.*?($|>)}isS",
    "is_callback": "Y",
    "replace": "echappe_anti_xss"
  },
  {
    "if_str": "<meta",
    "match": "{<meta.*?($|>)}isS",
    "is_callback": "Y",
    "replace": "echappe_anti_xss"
  }
]