रिसर्च सर्वे: Blockly के साथ अपने अनुभव के बारे में हमें बताएं
सर्वे शुरू करें
ब्लॉकली > एक्सएमएल > domToText
Xml.domToText() फ़ंक्शन
किसी DOM स्ट्रक्चर को सादे टेक्स्ट में बदलता है. फ़िलहाल, टेक्स्ट फ़ॉर्मैट बहुत खराब है: सिर्फ़ एक लाइन में खाली सफ़ेद जगह नहीं होती. हालांकि, डीओएम में खाली सफ़ेद जगह मौजूद न हो.
हस्ताक्षर:
export declare function domToText(dom: Node): string;
पैरामीटर
पैरामीटर |
टाइप |
ब्यौरा |
डॉम |
नोड |
एक्सएमएल नोड का ट्री. |
लौटाए जाने वाले प्रॉडक्ट:
स्ट्रिंग
टेक्स्ट दिखाना.
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-08-28 (UTC) को अपडेट किया गया.
[null,null,["आखिरी बार 2024-08-28 (UTC) को अपडेट किया गया."],[[["`domToText` function converts a DOM structure (a tree of XML nodes) into plain text."],["The resulting text format is currently basic, presented as a single line without whitespace, unless the original DOM structure contains whitespace."],["The function takes a single argument, `dom`, which is the XML node tree to be converted."],["It returns a string containing the plain text representation of the provided DOM structure."]]],[]]