+ 23

How to replace all the special characters with their HTML codes in javascript ??

I want to replace all the characters "<" and ">" with "<" and ">" respectively from a string.

18th Aug 2020, 2:46 AM
Locus
Locus - avatar
4 Answers
+ 11
Pikachu(you must heard my name) Not in regex please.
18th Aug 2020, 2:47 AM
Locus
Locus - avatar
- 2
Š”Š¾Š²ŠµŃ€ŃˆŠµŠ½Š½Š¾ Š¾Ń‡ŠµŠ²ŠøŠ“Š½Š¾ тŠ¾, чтŠ¾ этŠ¾ Š¾Ń€ŃƒŠ¶ŠøŠµ Š¾Š±Š»Š°Š“Š°ŠµŃ‚ уŠ±Š¾Š¹Š½Š¾Š¹ сŠøŠ»Š¾Š¹!
31st Aug 2020, 11:20 PM
Lito Coeval