फ़ंक्शन htmlspecialchars_decode

फ़ंक्शन htmlspecialchars_decode फ़ंक्शन htmlspecialchars का उल्टा ऑपरेशन करता है।

सिंटैक्स

phphtmlspecialchars_decode(string $string, int $flags = ENT_COMPAT): string

उदाहरण

आइए टैग वाली स्ट्रिंग को कनवर्ट करें:

php<?php
  $str = '<b>text</b>';
  $res = htmlspecialchars_decode($str);
  
  echo $res;
?>

कोड एक्सेक्यूशन का रिजल्ट:

php'<b>text</b>'

यह भी देखें

  • फ़ंक्शन html_entity_decode,
    जो समान ऑपरेशन करता है
  • फ़ंक्शन htmlspecialchars,
    जो उल्टा ऑपरेशन करता है