MCPcopy Create free account
hub / github.com/beginner-jhj/mini_browser / get_text_content

Method get_text_content

src/html/node.cpp:56–59  ·  view source on GitHub ↗

* \brief Returns the text content of a TEXT node. * * \return The text string for TEXT nodes. Empty string for ELEMENT nodes. */

Source from the content-addressed store, hash-verified

54 * \return The text string for TEXT nodes. Empty string for ELEMENT nodes.
55 */
56const std::string NODE::get_text_content() const
57{
58 return m_text;
59}
60
61/**
62 * \brief Returns the type of this node.

Callers 4

mainFunction · 0.80
extract_stylesheetsFunction · 0.80
layout_text_elementFunction · 0.80
create_layout_treeFunction · 0.80

Calls

no outgoing calls

Tested by 1

mainFunction · 0.64