Bob, thanks for this great snippet that also works for an expandable/collapsable links page (example:
izilwane.org/education-action-links.html#faq-1).
Bob’s earlier advice re: turning off the rich text editor and using line breaks instead of paragraph tags will save you lots of troubleshooting.
There is, however, a single open paragraph tag in ezfaq.inc.php (ver. 1.0.6) about line 185 that’s missing a matching closed tag. Most browsers will ignore an orphaned paragraph tag but it may throw an error.
This can be corrected by subsituting:
$output .= '<p><a href="[~[*id*]~]#faq-'.$itemCount.'">';
with:
$output .= '<a href="[~[*id*]~]#faq-'.$itemCount.'">';