public function renderAttrs($token)
    {
        if (!isset($token->attrs)) return '';

        $result = '';

        foreach ($token->attrs as &$a) {
            $result .= ' ' . htmlspecialchars($a[0]) . '="' . htmlspecialchars($a[1]) . '"';
        }

        return $result;
    }