in src/main/scala/managehelpcontentpublisher/HtmlToJson.scala [24:35]
private def refined(body: Element): Element =
(
unsupportedAttributesRemoved _ andThen
blankTextNodesRemoved andThen
emptyParagraphsRemoved
)(body)
private def htmlToJson(n: Node): ujson.Value =
n match {
case t: TextNode => ujson.Obj("element" -> "text", "content" -> t.text)
case e: Element => toJson(e)
}