Handler for displaying comment in preview and AJAX.

Right now I've got a handler for DiscussionController_BeforeCommentDisplay_Handler. In this function I replace smiley codes with HTML, ie :-) to img src="foo".
This function appears to only be called when a comment that has already been submitted is being displayed in the discussion. It does not get called when displaying a comment in the preview or when displaying a comment that has just been submitted (via AJAX) and displayed on the page. What do I need to do in order to be able to "intercept" a comment's contents for preview/AJAX display so I can replace the smiley codes with HTML properly in these cases?
This function appears to only be called when a comment that has already been submitted is being displayed in the discussion. It does not get called when displaying a comment in the preview or when displaying a comment that has just been submitted (via AJAX) and displayed on the page. What do I need to do in order to be able to "intercept" a comment's contents for preview/AJAX display so I can replace the smiley codes with HTML properly in these cases?
0