getUnescapedTextInNode

fun ASTNode.getUnescapedTextInNode(allFileText: CharSequence): String

Extension function for ASTNode that retrieves the unescaped text within the node.

This function first gets the text within the node, then converts it to a string. It then uses EntityConverter.replaceEntities to replace any escaped entities in the text, ensuring that the text is properly unescaped.

Return

The unescaped text within the node.

Parameters

allFileText

The complete text of the file, which is used to extract the text within the node.