My code snippet is as follows:
$compile .= "<h5 data-count='".$acctemmpi.
"' class='shortcode_accordion_item_title expanded_".
$expanded_state . "'>" . $title .
"<div class='ico'><hr class='hr_v'>
<hr class='hr_h'></div></h5>
<div class='shortcode_accordion_item_body'><div class='ip'>" .
$content . "</div></div>";
I encountered the error message:
Element div not allowed as child of element h5 in this context.
After attempting to change the inner div to span, I faced additional errors.
How can I resolve this issue?