• ♡ Sponsor

    stripTags

    #HTML #Strip

    Removes all Markdown syntax and HTML tags from a variable value. This function doesn't expect any parameters.

    @{ variable | stripTags }
    

    Related

    Pipe  ⁄
    markdown — Pipe

    Parses a Markdown formatted text and returns the generated HTML markup. Note that Automad actually also supports the slightly extended markdown flavor called Markdown Extra.

    Pipe  ⁄
    shorten — Pipe

    Shortens a string to a given number of characters and appends an optional ellipsis, without cutting off words. To avoid open or incomplete HTML tags, all tags will be removed before shortening a string.

    Pipe  ⁄
    stripEnd — Pipe

    Strips a substring from the end of a string.

    Pipe  ⁄
    stripStart — Pipe

    Strips a substring from the start of a string.

    • Automad
    • Developer Guide
    • Building Themes
    • Template Language
    • Pipe
    • stripTags
    Discuss
    Packages
    Release Notes
    Support
    Terms of Use
      Become a Sponsor
      GitHub
      Twitter
      Facebook
      Instagram
      2013-2023 by Marc Anton Dahmen
    Released under the MIT license

    A faceless machine, creating one's portrait in the internet.
  • Automad
  • Getting Started
  • System
  • User Guide
  • Developer Guide
  • Headless Mode
  • Discuss
  • Packages
  • Developer Guide ←
  • Building Themes ←
  • Template Language ←
  • Pipe
  • ceil
  • dateFormat
  • def
  • escape
  • findFirstImage
  • findFirstParagraph
  • floor
  • markdown
  • match
  • replace
  • round
  • sanitize
  • shorten
  • stripEnd
  • stripStart
  • stripTags
  • strlen
  • strtolower
  • strtoupper
  • ucwords