encodeEntities

Type:Function
Status:stable
Since:1.0.0
Platform:jsnode
@blackbyte.sugar.shared.html

This function allows you to encode some entities in a string like ”<” to “&lt;” It supports all the

Params

  1. html*-String

    The html to unescape

Return

  1. -String

    The unescaped html

Example

import { encodeEntities } from '@blackbyte/sugar/html';
encodeEntities('<s-code-example>'); // => &lt;s-code-example&gt;

Todo

  • testsnormal