Package io.goobi.viewer.controller
Class HtmlParser
java.lang.Object
io.goobi.viewer.controller.HtmlParser
Tools for parsing html
- Author:
- florian
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic StringgetPlaintext(String htmlText) static booleanGuess if the given text should be interpreted as html based in the existence of closing html tags or empty line break tagsstatic StringDuplicate ofStringTools.stripJS(String)because it seemed to fit here
-
Method Details
-
isHtml
Guess if the given text should be interpreted as html based in the existence of closing html tags or empty line break tags- Parameters:
text-- Returns:
- true if text is HTML content; false otherwise
-
stripJS
Duplicate ofStringTools.stripJS(String)because it seemed to fit here- Parameters:
s-- Returns:
- s stripped of any JavaScript
-
getPlaintext
-
getDisallowedHtmlTags
-
getDisallowedHtmlTagsForDisplay
-
getHtmlReplacements
-