html_strip.asciidoc 980 B

123456789101112131415161718192021222324252627282930
  1. [[htmlstrip-processor]]
  2. === HTML strip processor
  3. ++++
  4. <titleabbrev>HTML strip</titleabbrev>
  5. ++++
  6. Removes HTML tags from the field. If the field is an array of strings, HTML tags will be removed from all members of the array.
  7. NOTE: Each HTML tag is replaced with a `\n` character.
  8. [[htmlstrip-options]]
  9. .HTML Strip Options
  10. [options="header"]
  11. |======
  12. | Name | Required | Default | Description
  13. | `field` | yes | - | The string-valued field to remove HTML tags from
  14. | `target_field` | no | `field` | The field to assign the value to, by default `field` is updated in-place
  15. | `ignore_missing` | no | `false` | If `true` and `field` does not exist, the processor quietly exits without modifying the document
  16. include::common-options.asciidoc[]
  17. |======
  18. [source,js]
  19. --------------------------------------------------
  20. {
  21. "html_strip": {
  22. "field": "foo"
  23. }
  24. }
  25. --------------------------------------------------
  26. // NOTCONSOLE