src/MarkdownIt/Renderer.php
public function renderAttrs($token)
    {
        if (!isset($token->attrs)) return '';

        $result = '';

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

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

        $result = '';

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

        return $result;
    }
public function renderAttrs ( $ token ) { if ( ! isset ( $ token -> attrs ) ) return '' ; $ result = '' ; foreach ( $ token -> attrs as & $ a ) { $ result .= ' ' . htmlspecialchars ( $ a [ 0 ] ) . '="' . htmlspecialchars ( $ a [ 1 ] ) . '"' ; } return $ result ; }
Render token attributes to string.
@param Token $token
@return string
Render token attributes to string .