Coverage Report - org.webslinger.html.HtmlUtil
 
Classes in this File Line Coverage Branch Coverage Complexity
HtmlUtil
44%
4/9
N/A
1
 
 1  
 package org.webslinger.html;
 2  
 
 3  0
 public class HtmlUtil {
 4  
     public static final String quoteHTML(String text) {
 5  15
         text = text.replaceAll("&", "&");
 6  15
         text = text.replaceAll("<", "&lt;");
 7  15
         text = text.replaceAll(">", "&gt;");
 8  15
         return text;
 9  
     }
 10  
 
 11  
     public static final String unquoteHTML(String text) {
 12  0
         text = text.replaceAll("&gt;", ">");
 13  0
         text = text.replaceAll("&lt;", "<");
 14  0
         text = text.replaceAll("&amp;", "&");
 15  0
         return text;
 16  
     }
 17  
 }
 18