Android HTML Encode encodeHtml(String to_encode)

Here you can find the source of encodeHtml(String to_encode)

Description

Encodes unicode characters as HTML entities

Declaration

public static String encodeHtml(String to_encode) 

Method Source Code

//package com.java2s;

import android.text.TextUtils;

public class Main {
    /** Encodes unicode characters as HTML entities */
    public static String encodeHtml(String to_encode) {
        return TextUtils.htmlEncode(to_encode);
    }//  ww w  .ja v a 2s . c o  m
}

Related

  1. htmEncode(String input)
  2. htmlencode(String str)
  3. replaceHTMLTags(final String source)
  4. fromHTML(String textToTransform)
  5. htmlEncode(String stringToEncode)