github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/docs/commands/eschtml.md (about)

     1  # `eschtml`
     2  
     3  > Encode or decodes text for HTML
     4  
     5  ## Description
     6  
     7  `eschtml` takes input from either STDIN or the parameters and returns the same
     8  data, HTML escaped.
     9  
    10  `!eschtml` does the same process in reverse, where it takes HTML escaped data
    11  and returns its unescaped counterpart.
    12  
    13  ## Usage
    14  
    15  Escape
    16  
    17  ```
    18  <stdin> -> eschtml -> <stdout>
    19  
    20  eschtml string to escape -> <stdout>
    21  ```
    22  
    23  Unescape
    24  
    25  ```
    26  <stdin> -> !eschtml -> <stdout>
    27  
    28  !eschtml string to unescape -> <stdout>
    29  ```
    30  
    31  ## Examples
    32  
    33  Escape
    34  
    35  ```
    36  » out "<h1>foo & bar</h1>" -> eschtml
    37  &lt;h1&gt;foo &amp; bar&lt;/h1&gt;
    38  ```
    39  
    40  Unescape
    41  
    42  ```
    43  » out '&lt;h1&gt;foo &amp; bar&lt;/h1&gt;' -> !eschtml
    44  <h1>foo & bar</h1>
    45  ```
    46  
    47  ## Synonyms
    48  
    49  * `eschtml`
    50  * `!eschtml`
    51  
    52  
    53  ## See Also
    54  
    55  * [`escape`](../commands/escape.md):
    56    Escape or unescape input
    57  * [`esccli`](../commands/esccli.md):
    58    Escapes an array so output is valid shell code
    59  * [`escurl`](../commands/escurl.md):
    60    Encode or decodes text for the URL
    61  * [`get`](../commands/get.md):
    62    Makes a standard HTTP request and returns the result as a JSON object
    63  * [`getfile`](../commands/getfile.md):
    64    Makes a standard HTTP request and return the contents as Murex-aware data type for passing along Murex pipelines.
    65  * [`post`](../commands/post.md):
    66    HTTP POST request with a JSON-parsable return
    67  
    68  <hr/>
    69  
    70  This document was generated from [builtins/core/escape/escape_doc.yaml](https://github.com/lmorg/murex/blob/master/builtins/core/escape/escape_doc.yaml).