Java HTML Entities htmlEntites(String str)

Here you can find the source of htmlEntites(String str)

Description

html Entites

License

Open Source License

Declaration

public static String htmlEntites(String str) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static String htmlEntites(String str) {
        return str.replace("<", "&lt;").replace(">", "&gt;");
    }/*from   w ww  .  j  av a  2 s . c o m*/
}

Related

  1. htmlEntites(String str)
  2. htmlEntities(String s)
  3. htmlEntities(String text)
  4. htmlEntityToString(String dataStr)