@@ -120,6 +120,7 @@ public class HtmCache
bis.read(raw);
content = new String(raw, "UTF-8");
+ content = content.replaceAll("(?s)<!--.*?-->", ""); // Remove html comments
String oldContent = _cache.get(relpath);
if (oldContent == null)
@@ -81,7 +81,7 @@ public abstract class AbstractHtmlPacket extends L2GameServerPacket
_html = html.substring(0, 17200);
}
- if (!html.contains("<html>"))
+ if (!html.contains("<html"))
{
html = "<html><body>" + html + "</body></html>";