mazey
    Preparing search index...

    Function unescapeHTML

    • Decode the fixed HTML entity set emitted by escapeHTML.

      Decoding uses one pass and preserves unrecognized entities. This is not a general HTML entity decoder, and the result may contain active HTML markup.

      Usage:

      import { unescapeHTML } from "mazey";

      const ret = unescapeHTML("<div>hello world</div>");
      console.log(ret);

      Output:

      <div>hello world</div>
      

      Parameters

      • input: string

        The string containing escaped characters.

      Returns string

      The decoded string.