Example usage for org.apache.commons.lang Entities HTML40

List of usage examples for org.apache.commons.lang Entities HTML40

Introduction

In this page you can find the example usage for org.apache.commons.lang Entities HTML40.

Prototype

Entities HTML40

To view the source code for org.apache.commons.lang Entities HTML40.

Click Source Link

Document

The set of entities supported by HTML 4.0.

Usage

From source file:com.aelitis.azureus.core.metasearch.impl.web.WebResult.java

public void setVotesDownFromHTML(String votes_str) {
    if (votes_str != null) {
        votes_str = removeHTMLTags(votes_str);
        votes_str = Entities.HTML40.unescape(votes_str);
        votes_str = votes_str.replaceAll(",", "");
        votes_str = votes_str.replaceAll(" ", "");
        try {//from  ww  w .  j a  va  2  s.  co m
            this.votesDown = Integer.parseInt(votes_str);
        } catch (Throwable e) {
            //e.printStackTrace();
        }
    }
}