Encode string with htmlspecialchars



How HTML Entity Encoding (htmlspecialchars) Works

HTML encoding converts characters with special meaning in HTML - & to &amp;, < to &lt;, > to &gt;, " to &quot;, and ' to &#039;. Always escaping untrusted text before rendering it in HTML prevents broken layouts and Cross-Site Scripting (XSS) vulnerabilities.

Please read the privacy policy (agreement of the cookies usage, other websites embedded content, etc.). If you continue to use the site, we will assume that you agree with our privacy policy.
OkPrivacy Policy