github.com/rabbouni145/gg@v0.47.1/docs/content/en/functions/countrunes.md (about)

     1  ---
     2  title: countrunes
     3  description: Determines the number of runes in a string excluding any whitespace.
     4  godocref:
     5  date: 2017-02-01
     6  publishdate: 2017-02-01
     7  lastmod: 2017-02-01
     8  categories: [functions]
     9  menu:
    10    docs:
    11      parent: "functions"
    12  keywords: [counting, word count]
    13  signature: ["countrunes INPUT"]
    14  workson: []
    15  hugoversion:
    16  relatedfuncs: []
    17  deprecated: false
    18  ---
    19  
    20  In contrast with `countwords` function, which counts every word in a string, the `countrunes` function determines the number of runes in the content and excludes any whitespace. This has specific utility if you are dealing with CJK-like languages.
    21  
    22  ```
    23  {{ "Hello, 世界" | countrunes }}
    24  <!-- outputs a content length of 8 runes. -->
    25  ```
    26  
    27  [pagevars]: /variables/page/