|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.varienaja.util.wikipedia.WikiContentHelper
public class WikiContentHelper
Helper class.
Constructor Summary | |
---|---|
WikiContentHelper()
|
Method Summary | |
---|---|
static java.lang.String |
removeComment(java.lang.String content)
Removes html-comments from a String. |
static java.lang.String |
removeImages(java.lang.String content)
Removes image-refs from a String. |
static java.lang.String |
removeLinks(java.lang.String input)
Removes WikiLink-constructs from plaintext. |
static java.lang.String |
removeRefs(java.lang.String content)
Removes html from a String. |
static java.lang.String |
sanitizeQuotes(java.lang.String content)
Removes superfluous quotes in a String. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WikiContentHelper()
Method Detail |
---|
public static java.lang.String removeLinks(java.lang.String input)
[[xx|yy]] --> yy
[[xx]] --> xx
input
- The String
public static java.lang.String sanitizeQuotes(java.lang.String content)
I talked about '''something''' cool --> I talked about 'something' cool
content
- The String.
public static java.lang.String removeRefs(java.lang.String content)
lalala.<ref>[sjalala]</ref> lololo --> lalala. lololo
lalala.<a href>[sjalala]</a> lololo --> lalala. lololo
content
- The String.
public static java.lang.String removeComment(java.lang.String content)
content
- The String.
public static java.lang.String removeImages(java.lang.String content)
[[Image:JohannesBrahms.jpg|thumb|right|250px|Johannes Brahms]]
content
- The String.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |