decode-html-entities
decode-html-entities converts special characters like & into &.
Install in your project
npm install decode-html-entities --save
Example
input:
'1 & 2'
output:'1 & 2'
How to use?
import module@NgModule({ declarations:[DecodeHtmlEntitiesModule], exports:[DecodeHtmlEntitiesModule] })
<p>{{ text | decodeHtmlEntities }}</p>
How?
transform: any
License
MIT Free Software, Yeah!