GeezerVison is showing developer.mozilla.org — HTMLScriptElement: text property - Web APIs | MDN
HTMLScriptElement: text property
Baseline
Widely available
*
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2015.
* Some parts of this feature may have varying levels of support.
Getting the property returns a string containing the script's text.
Setting the property accepts either a TrustedScript object or a string.
The text property of the HTMLScriptElement interface represents the text content inside the <script> element.
For an executable script (that is, a script whose type indicates that it is a module or classic script), this text is inline executable code.
For other types it might represent an import map, speculation rules, or some other kind of data block.
Note that if the src property is set the content of the text property is ignored.