Thread:Project:Support desk/Does this extension need htmlspecialchars() ?

I have two extensions published here:
 * Extension:Sarcasm
 * Extension:Story Paragraph

The code is available in the download link. I had a problem with the story paragraph tags escaping the HTML characters that were part of the wikitext. Does it need htmlspecialchars with $output, or does the text in the tags get escaped with the rest of the wikitext?