Convert all HTML entities to applicable characters.
Install
Install all functions of strman
yarn add strmanor just the htmlDecode function
yarn add strman.htmldecodeUsage
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>'