public class HtmlTextScanner extends TextScanner
| Constructor and Description |
|---|
HtmlTextScanner() |
| Modifier and Type | Method and Description |
|---|---|
Map<String,to.etc.lexer.HtmlTextScanner.TagInfo> |
getMap() |
static String |
htmlRemoveAll(String html,
boolean lf) |
static void |
htmlRemoveAll(StringBuilder outsb,
String text,
boolean lf) |
static String |
htmlRemoveUnsafe(String html) |
static void |
htmlRemoveUnsafe(StringBuilder outsb,
String text)
This scans the input, and only copies "safe" html, which is HTML with only
simple constructs.
|
void |
scan(StringBuilder sb,
String html)
Scan HTML and remove unsafe tags and attributes.
|
void |
scanAndRemove(StringBuilder sb,
String html,
boolean includelf)
Remove all HTML tags and collapse whitespace.
|
accept, accept, append, append, append, clear, copy, copy, copy, currentChar, eof, getBuffer, getCopied, getInt, getLastInt, inc, index, LA, LA, length, nextChar, peekWord, sb, scanDelimited, scanDouble, scanInt, scanLetters, scanWord, setIndex, setString, skip, skipWSpublic void scan(StringBuilder sb, String html)
sb - html - public void scanAndRemove(StringBuilder sb, String html, boolean includelf)
sb - html - includelf - public static void htmlRemoveUnsafe(StringBuilder outsb, String text)
sb - html - public static void htmlRemoveAll(StringBuilder outsb, String text, boolean lf)
Copyright © 2017 etc.to. All rights reserved.