Put span-stripping function in place of replacement strings.
Finalise syntax highlighter styling.