For example:
convertHTML("Dolce & Gabbana") should return Dolce & Gabbana
Asked
Active
Viewed 27 times
1
Fabrizio Calderan
- 115,126
- 25
- 163
- 167
Russel Santos
- 27
- 1
- 10
-
the cheating way .... create a HTMLElement like a span or div etc ... add the text as innerText ... retrieve it from innerHTML – Jaromanda X Dec 10 '19 at 12:12