String (XmlFile xmlFile) { final XmlTag rootTag = xmlFile.getRootTag(); if (rootTag != null) { final PsiElement[] children = rootTag.getChildren(); for (PsiElement child : children) { if (!(child instanceof HtmlTag htmlTag)) { continue; } @NonNls final String name = htmlTag.getName(); if ("body".equalsIgnoreCase(name)) { final XmlTagValue value = htmlTag.getValue(); return value.getText(); } } } return xmlFile.getText(); }