Package br.com.caelum.tubaina.util

Examples of br.com.caelum.tubaina.util.HtmlSanitizer


  public String parse(SubsectionChunk chunk) {
    int nextSubsection = chunk.getSubsectionNumber();
    int currentChapter = chunk.getCurrentChapter();
    int currentSection = chunk.getCurrentSection();
    ChapterBuilder.getChaptersCount();
    String sanitized = new HtmlSanitizer().sanitize(chunk.getTitle());
    String subsectionTitle = String.format("<" + HTML_TAG + " class='subsection'>%d.%d.%d - %s</" + HTML_TAG + ">", currentChapter, currentSection, nextSubsection, sanitized);
   
    subsectionManager.nextSubsection();
   
    return subsectionTitle + "\n" + chunk.getContent();
View Full Code Here

TOP

Related Classes of br.com.caelum.tubaina.util.HtmlSanitizer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.