protected function addTag($tagPos, $tagLen, $hex)
	{
		$tag = $this->parser->addSelfClosingTag($this->config['tagName'], $tagPos, $tagLen, 10);

		// Short sequence, only the relevant codepoints are kept
		$seq = str_replace(['-200d', '-fe0f'], '', $hex);
		$tag->setAttribute('seq', $seq);

		// Twemoji sequence, leading zeroes and trailing VS16 are removed
		$tseq = preg_replace('(-fe0f$)', '', ltrim($hex, '0'));
		$tag->setAttribute('tseq', $tseq);
	}