import { load } from "cheerio" ; import { AppletType } from "../type/applet-type" ; import { replaceAttrs } from "./replace-attrs" ; import { extractBodyContent } from "./extract-body-content" ; author CaMnter
  param code param target param expect export function xmlTransForm ( code , target , expect ) { const $ = load ( code as string ) ; replaceAttrs ( target , expect , $ ) ; const bodyContent = extractBodyContent ( $ ) ; return { $ , bodyContent } ; }