How to encode html in JavaScript


To encode we use three major inbuilt encoding JavaScript function but actually it false in html tags. To smarter way to encode html string is to use replace JavaScript inbuilt function which will replace your major special character like <> and & and other tags. You can use other inbuilt function but it not work too efficiently: so you can read article how to do encode.   

Leave a Comment

Your email address will not be published.