문제

I'm using SGML Reader to format my html snippets as shown here https://github.com/MindTouch/SGMLReader. Problem is it adds missing tags like in the code. Is there is any way to stop that.

도움이 되었습니까?

해결책

SgmlReader is intended to convert the source into a valid HTML document. Hence, it will always surround the parsed content with . If you want to remove some of the tags, you can traverse the XML document and either remove the nodes you don't want or, alternatively, copy only the nodes you want to a new XML document.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top