I just tested and the snippet did not display in preview mode
but it was fine in generated webhelp.
Try again and if necessary try in a new test project.
Help others by clicking Correct Answer if the question is answered. Found the answer elsewhere? Share it here. "Upvote" is for useful posts.