MCPcopy Create free account
hub / github.com/DioxusLabs/dioxus / script_contents

Method script_contents

packages/document/src/elements/script.rs:60–62  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

58 }
59
60 pub fn script_contents(&self) -> Result<String, ExtractSingleTextNodeError<'_>> {
61 extract_single_text_node(&self.children)
62 }
63}
64
65/// Render a [`<script>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/script) tag into the head of the page.

Callers 7

create_scriptMethod · 0.80
create_scriptMethod · 0.80
create_scriptMethod · 0.80
ScriptFunction · 0.80
create_scriptMethod · 0.80
create_scriptMethod · 0.80
create_scriptMethod · 0.80

Calls 1

extract_single_text_nodeFunction · 0.85

Tested by

no test coverage detected