JavaScript HTML Entities Encode & Decode Like PHP's htmlentities()/htmlspecialchars() functions, JavaScript is easy to implement it. Encode /**