htmlDecode

Convert all HTML entities to applicable characters.

Install

Install all functions of strman

yarn add strman

or just the htmlDecode function

yarn add strman.htmldecode

Usage

import { htmlDecode } from 'strman'
// OR
import htmlDecode from 'strman.htmldecode'
Parameters:
Name Type Description
value String

value to decode.

Source:
Returns:

The decoded data.

Type
String
Example
htmlDecode('<div>')
// => '<div>'