User Activity

  • Posted a comment on discussion Open Discussion on HtmlCleaner

    no, I got some like this. <p> Text for text, <custom><custom/>, <another><another/> 1&gt;0 5&lt;10 </p> But, I fixed this using next code: HtmlCleaner cleaner = new HtmlCleaner(); CleanerProperties props = cleaner.getProperties(); props.setTreatUnknownTagsAsContent(true); props.setNamespacesAware(false); props.setOmitHtmlEnvelope(true); props.setOmitXmlDeclaration(false); TagNode node = cleaner.clean(input); String result = new CompactHtmlSerializer(props).getAsString(node); return result.replaceAll("<\\?xml.*\\?>",...

  • Modified a comment on discussion Open Discussion on HtmlCleaner

    I have input some like this <p> Text for text, <custom>, <another/> 1>0 5<10 </p> But replace brackets only for "1>0 5<10" and create <custom> with close slash.</custom>

  • Posted a comment on discussion Open Discussion on HtmlCleaner

    I have input some like this <p> Text for text, <custom>, <another/> 1>0 5<10 </p> But replace brackets only for "1>0 5<10"

View All

Personal Data

Username:
ddpred
Joined:
2023-04-05 09:47:48.714000

Projects

  • No projects to display.

Personal Tools

MongoDB Logo MongoDB