Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    public static String removeHtmlTags(String toCleanString) {
        toCleanString = toCleanString.replace("<html>", "");
        toCleanString = toCleanString.replace("</html>", "");
        toCleanString = toCleanString.replace("<head></head>", "");
        toCleanString = toCleanString.replace("<body>", "");
        toCleanString = toCleanString.replace("</body>", "");
        return toCleanString.trim();
    }
}