Sha256: 0f56b06ec7061cf18db819e71d3aee1cf9784843ad4ed89294c1cd105579b708

Contents?: true

Size: 936 Bytes

Versions: 28

Compression:

Stored size: 936 Bytes

Contents

{
  "schema_type": "object",
  "schema_version": "1.0",
  "name": "sanitize_html",
  "path": "packages/ree_text/package/ree_text/functions/sanitize_html.rb",
  "mount_as": "fn",
  "class": "ReeText::SanitizeHtml",
  "factory": null,
  "methods": [
    {
      "doc": "Sanitizes both html and css via the safe lists found here:\nhttps://github.com/flavorjones/loofah/blob/master/lib/loofah/html5/safelist.rb\n\nTags and attributes can also be passed to +sanitize+.\nPassed options take precedence over the class level options.",
      "throws": [
        "ArgumentError"
      ],
      "return": "String",
      "args": [
        {
          "arg": "html",
          "type": "String"
        },
        {
          "arg": "prune",
          "type": "Bool"
        },
        {
          "arg": "opts",
          "type": "Ksplat[:tags? => ArrayOf[String], :attributes? => ArrayOf[String]]"
        }
      ]
    }
  ],
  "links": [

  ]
}

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
ree_lib-1.0.32 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
ree_lib-1.0.31 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
ree_lib-1.0.30 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
ree_lib-1.0.29 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
ree_lib-1.0.28 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
ree_lib-1.0.27 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
ree_lib-1.0.26 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
ree_lib-1.0.24 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
ree_lib-1.0.23 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
ree_lib-1.0.22 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
ree_lib-1.0.21 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
ree_lib-1.0.20 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
ree_lib-1.0.19 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
ree_lib-1.0.18 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
ree_lib-1.0.17 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
ree_lib-1.0.16 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
ree_lib-1.0.15 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
ree_lib-1.0.14 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
ree_lib-1.0.13 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json
ree_lib-1.0.12 lib/ree_lib/packages/ree_text/schemas/ree_text/functions/sanitize_html.schema.json