फ़ंक्शन htmlspecialchars_decode
फ़ंक्शन htmlspecialchars_decode
फ़ंक्शन htmlspecialchars का उल्टा ऑपरेशन करता है।
सिंटैक्स
htmlspecialchars_decode(string $string, int $flags = ENT_COMPAT): string
उदाहरण
आइए टैग वाली स्ट्रिंग को कनवर्ट करें:
<?php
$str = '<b>text</b>';
$res = htmlspecialchars_decode($str);
echo $res;
?>
कोड एक्सेक्यूशन का रिजल्ट:
'<b>text</b>'
यह भी देखें
-
फ़ंक्शन
html_entity_decode,
जो समान ऑपरेशन करता है -
फ़ंक्शन
htmlspecialchars,
जो उल्टा ऑपरेशन करता है