What function can be used to decode HTML entities in PHP?
When working with HTML content in PHP, sometimes the text may contain HTML entities like & or < which need to be decoded back to their original characters for proper display. To decode HTML entities in PHP, you can use the `html_entity_decode()` function. This function takes a string containing HTML entities as input and returns the decoded string.
// Example of decoding HTML entities in PHP
$html_content = "&lt;h1&gt;Hello, World!&lt;/h1&gt;";
$decoded_content = html_entity_decode($html_content);
echo $decoded_content;