| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| HtmlUtil |
|
| 1.0;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("<", "<"); |
| 7 | 15 | text = text.replaceAll(">", ">"); |
| 8 | 15 | return text; |
| 9 | } | |
| 10 | ||
| 11 | public static final String unquoteHTML(String text) { | |
| 12 | 0 | text = text.replaceAll(">", ">"); |
| 13 | 0 | text = text.replaceAll("<", "<"); |
| 14 | 0 | text = text.replaceAll("&", "&"); |
| 15 | 0 | return text; |
| 16 | } | |
| 17 | } | |
| 18 |