Classify string with delimiter, produce HTML