Entry
How do I use the method text?
How do I use the method text?
Apr 12th, 2005 03:27
Shopping Snooper, Casino Vendor Directory, Martin Honnen,
The method text takes no argument and returns an XMLList with all the
children of this XML object that represent text nodes.
Here are some examples:
var p = <p>Kibology for <b>all</b>. All for <b>Kibology</b>.</p>;
var textNodeList = p.text();
alert(textNodeList.length()); // shows 3
alert(textNodeList.toXMLString());
/* shows
'Kibology for
. All for
.'
*/