| Index: java/org/chromium/distiller/DomUtil.java
|
| diff --git a/java/org/chromium/distiller/DomUtil.java b/java/org/chromium/distiller/DomUtil.java
|
| index 28ec2aca7f8a816f7a8f7fc5e50d6cb563793959..ca00199403eeab74eb628fd2ec3acf0f456da9d6 100644
|
| --- a/java/org/chromium/distiller/DomUtil.java
|
| +++ b/java/org/chromium/distiller/DomUtil.java
|
| @@ -451,6 +451,15 @@ public class DomUtil {
|
| return 0;
|
| }
|
|
|
| + public static String escapeHTML(String string) {
|
| + return string.replaceAll("&", "&")
|
| + .replaceAll("<", "<")
|
| + .replaceAll(">", ">")
|
| + .replaceAll("\"", """)
|
| + .replaceAll("'", "'")
|
| + .replaceAll("/", "/");
|
| + }
|
| +
|
| /**
|
| * Generate HTML/text output for a given node tree/subtree. This will ignore hidden
|
| * elements.
|
|
|