escapeHTML
function escapeHTML(text: string): string;
Replaces a special character with an HTML entity.
&
->&
<
-><
>
->>
'
->'
"
->"
Example
escapeHTML('Settings > Notification'); // 'Settings > Notification'
function escapeHTML(text: string): string;
Replaces a special character with an HTML entity.
&
-> &
<
-> <
>
-> >
'
-> '
"
-> "
escapeHTML('Settings > Notification'); // 'Settings > Notification'