Remove tags from children text and add debugging method