1. PHP

PHP htmlspecialchars

Fungsi htmlspecialchars() pada PHP digunakan untuk mengkonversikan karakter-karakter tertentu menjadi kode-kode HTML.

Syntax

htmlspecialchars(string,quotestyle,character-set)

Contoh :

<?php
$new = htmlspecialchars("<a href='test'>Test</a>", ENT_QUOTES);
echo $new; // <a href='test'>Test</a>
?>
Comments to: PHP htmlspecialchars

    Your email address will not be published. Required fields are marked *

    Attach images - Only PNG, JPG, JPEG and GIF are supported.